commit 19f48027ee2b41524436d4ce0ab45f4494545335
parent 9f5f4f3cbe0067b64228f378064b031a07738a5d
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Thu, 20 Feb 2020 01:01:39 +0300
Add cambridge,macmillan,webster dicts
Diffstat:
4 files changed, 84 insertions(+), 0 deletions(-)
diff --git a/pkgs/data/dicts/cambridge/default.nix b/pkgs/data/dicts/cambridge/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchzip }:
+
+stdenv.mkDerivation rec {
+ pname = "cambridge";
+ version = "2.4.2";
+
+ src = fetchzip {
+ url = "http://download.huzheng.org/bigdict/stardict-Cambridge_Advanced_Learners_Dictionary_3th_Ed-${version}.tar.bz2";
+ sha256 = "09x4dmgb49mza87f51csvmq273g5hb3d8pzbakpz0bm0qm02qcsi";
+ };
+
+ installPhase = ''
+ install -dm755 "$out/share/goldendict/dictionaries/${pname}"
+ cp -a . "$out/share/goldendict/dictionaries/${pname}"
+ '';
+
+ preferLocalBuild = true;
+
+ meta = with stdenv.lib; {
+ description = "Cambridge Advanced Learners Dictionary 3th Ed. (En-En)";
+ homepage = "http://download.huzheng.org/bigdict/";
+ license = licenses.free;
+ maintainers = with maintainers; [ sikmir ];
+ platforms = platforms.all;
+ skip.ci = true;
+ };
+}
diff --git a/pkgs/data/dicts/macmillan/default.nix b/pkgs/data/dicts/macmillan/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchzip }:
+
+stdenv.mkDerivation rec {
+ pname = "macmillan";
+ version = "2.4.2";
+
+ src = fetchzip {
+ url = "http://download.huzheng.org/bigdict/stardict-Macmillan_English_Dictionary-${version}.tar.bz2";
+ sha256 = "171q6p6f81yi9gjk9rw49kfm2dr6c7aj6rpnavsn20g426pskj2r";
+ };
+
+ installPhase = ''
+ install -dm755 "$out/share/goldendict/dictionaries/${pname}"
+ cp -a . "$out/share/goldendict/dictionaries/${pname}"
+ '';
+
+ preferLocalBuild = true;
+
+ meta = with stdenv.lib; {
+ description = "Macmillan English Dictionary (En-En)";
+ homepage = "http://download.huzheng.org/bigdict/";
+ license = licenses.free;
+ maintainers = with maintainers; [ sikmir ];
+ platforms = platforms.all;
+ skip.ci = true;
+ };
+}
diff --git a/pkgs/data/dicts/webster/default.nix b/pkgs/data/dicts/webster/default.nix
@@ -0,0 +1,27 @@
+{ stdenv, fetchzip }:
+
+stdenv.mkDerivation rec {
+ pname = "webster";
+ version = "2.4.2";
+
+ src = fetchzip {
+ url = "http://download.huzheng.org/bigdict/stardict-Webster_s_Unabridged_3-${version}.tar.bz2";
+ sha256 = "0bbqawgvp1h4a403xa3f7n417gv9wxjgll8cymm75qsrh7z9w7c2";
+ };
+
+ installPhase = ''
+ install -dm755 "$out/share/goldendict/dictionaries/${pname}"
+ cp -a . "$out/share/goldendict/dictionaries/${pname}"
+ '';
+
+ preferLocalBuild = true;
+
+ meta = with stdenv.lib; {
+ description = "Webster's Third New International Dictionary, Unabridged (En-En)";
+ homepage = "http://download.huzheng.org/bigdict/";
+ license = licenses.free;
+ maintainers = with maintainers; [ sikmir ];
+ platforms = platforms.all;
+ skip.ci = true;
+ };
+}
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -7,6 +7,7 @@ in
lib.makeScope newScope (self: with self; {
inherit sources;
+ cambridge = callPackage ./data/dicts/cambridge { };
cfiles = callPackage ./tools/cfiles { };
cgpsmapper = callPackage ./tools/geo/cgpsmapper { };
cheetah3 = python3Packages.callPackage ./development/python-modules/cheetah3 {
@@ -49,6 +50,7 @@ lib.makeScope newScope (self: with self; {
hiblovgpsmap = callPackage ./data/maps/hiblovgpsmap { };
ish = callPackage ./tools/networking/ish { };
libshell = callPackage ./development/libraries/libshell { };
+ macmillan = callPackage ./data/dicts/macmillan { };
mapsoft = callPackage ./applications/mapsoft { };
mbtileserver = callPackage ./servers/mbtileserver { };
mercantile = python3Packages.callPackage ./development/python-modules/mercantile {
@@ -86,4 +88,5 @@ lib.makeScope newScope (self: with self; {
tpkutils = python3Packages.callPackage ./tools/geo/tpkutils {
inherit sources mercantile pymbtiles;
};
+ webster = callPackage ./data/dicts/webster { };
})