diff options
author | Karel Kočí <cynerd@email.cz> | 2022-06-22 15:54:04 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-06-22 15:55:14 +0200 |
commit | 5ec374830995b705cae116ea14e6190f8c4d3a29 (patch) | |
tree | a59c40d6b8bd95e86df6a0857ff10cbca506aabe /pkgs/stardict | |
parent | 5679c4ad2745fbd62a40be8beaa5c68b20c0a6bf (diff) | |
download | nixos-personal-5ec374830995b705cae116ea14e6190f8c4d3a29.tar.gz nixos-personal-5ec374830995b705cae116ea14e6190f8c4d3a29.tar.bz2 nixos-personal-5ec374830995b705cae116ea14e6190f8c4d3a29.zip |
Add sdcv and stardict dictionaries
Diffstat (limited to 'pkgs/stardict')
-rw-r--r-- | pkgs/stardict/cz.nix | 22 | ||||
-rw-r--r-- | pkgs/stardict/de-cz.nix | 23 | ||||
-rw-r--r-- | pkgs/stardict/en-cz.nix | 23 |
3 files changed, 68 insertions, 0 deletions
diff --git a/pkgs/stardict/cz.nix b/pkgs/stardict/cz.nix new file mode 100644 index 0000000..7b4eeb0 --- /dev/null +++ b/pkgs/stardict/cz.nix @@ -0,0 +1,22 @@ +{ 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; + }; +} diff --git a/pkgs/stardict/de-cz.nix b/pkgs/stardict/de-cz.nix new file mode 100644 index 0000000..8ef3923 --- /dev/null +++ b/pkgs/stardict/de-cz.nix @@ -0,0 +1,23 @@ +{ lib, stdenvNoCC, fetchurl }: + +stdenvNoCC.mkDerivation rec { + pname = "stardict-de-cz"; + version = "20200501"; + + src = fetchurl { + url = "http://dl.cihar.com/slovnik/stable/stardict-german-czech-${version}.tar.gz"; + sha256 = "1d91pmflaz9zgblalk9b2ib6idj6akm64wvslmzsydwn738n6va2"; + }; + + installPhase = '' + mkdir -p $out/usr/share/stardict/dic + cp czech-german.* $out/usr/share/stardict/dic/ + cp german-czech.* $out/usr/share/stardict/dic/ + ''; + + meta = with lib; { + description = "GNU/FDL German-Czech dictionary for StarDict"; + homepage = "http://slovnik.zcu.cz/"; + license = licenses.gpl3; + }; +} diff --git a/pkgs/stardict/en-cz.nix b/pkgs/stardict/en-cz.nix new file mode 100644 index 0000000..353334c --- /dev/null +++ b/pkgs/stardict/en-cz.nix @@ -0,0 +1,23 @@ +{ lib, stdenvNoCC, fetchurl }: + +stdenvNoCC.mkDerivation rec { + pname = "stardict-en-cz"; + version = "20210401"; + + src = fetchurl { + url = "http://dl.cihar.com/slovnik/stable/stardict-english-czech-${version}.tar.gz"; + sha256 = "1rh2ybqwzw258g4d4aydc587mbqqq7m7fzkxq9kf3b7x9xqzx6ia"; + }; + + installPhase = '' + mkdir -p $out/usr/share/stardict/dic + cp czech-english.* $out/usr/share/stardict/dic/ + cp english-czech.* $out/usr/share/stardict/dic/ + ''; + + meta = with lib; { + description = "GNU/FDL English-Czech dictionary for StarDict"; + homepage = "http://slovnik.zcu.cz/"; + license = licenses.gpl3; + }; +} |