aboutsummaryrefslogtreecommitdiff
path: root/pkgs/stardict
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/stardict')
-rw-r--r--pkgs/stardict/cz.nix22
-rw-r--r--pkgs/stardict/de-cz.nix23
-rw-r--r--pkgs/stardict/en-cz.nix23
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;
+ };
+}