aboutsummaryrefslogtreecommitdiff
path: root/pkgs/stardict/cz.nix
blob: 0ce4100d0d084679508e2b4bcc9d7a8c5cb3b20a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
  lib,
  stdenvNoCC,
  fetchurl,
}:
stdenvNoCC.mkDerivation rec {
  pname = "stardict-cz";
  version = "20171101";

  src = fetchurl {
    url = "https://dl.cihar.com/slovnik/stable/stardict-czech-${version}.tar.gz";
    sha256 = "14kch0cms3d77js2kyx7risadlzk3waig22gch59qp9y86b9w0zz";
  };

  installPhase = ''
    mkdir -p $out/usr/share/stardict/dic
    cp czech-cizi.* $out/usr/share/stardict/dic/
  '';

  meta = with lib; {
    description = "Czech dictionary of foreign words for stardict";
    homepage = "http://slovnik.zcu.cz/";
    license = licenses.gpl3;
  };
}