commit cbedb8044cca3c4373987e80b472fc0826a02fcf
parent 1408da17c370b59cd44c6f30e13a56667422d661
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Tue, 1 Dec 2020 23:38:03 +0300
Add dadako dicts
Diffstat:
3 files changed, 47 insertions(+), 0 deletions(-)
diff --git a/pkgs/data/dicts/dadako/base.nix b/pkgs/data/dicts/dadako/base.nix
@@ -0,0 +1,25 @@
+{ stdenvNoCC, fetchurl, unzip, pname, version, filename, sha256, description }:
+
+stdenvNoCC.mkDerivation {
+ inherit pname version;
+
+ src = fetchurl {
+ url = "http://dadako.narod.ru/GoldenDict/${filename}";
+ inherit sha256;
+ };
+
+ dontUnpack = true;
+
+ installPhase = "${unzip}/bin/unzip $src -d $out";
+
+ preferLocalBuild = true;
+
+ meta = with stdenvNoCC.lib; {
+ inherit description;
+ homepage = "http://dadako.narod.ru/paperpoe.htm";
+ license = licenses.free;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.all;
+ skip.ci = true;
+ };
+}
diff --git a/pkgs/data/dicts/dadako/default.nix b/pkgs/data/dicts/dadako/default.nix
@@ -0,0 +1,21 @@
+{ lib, callPackage }:
+let
+ version = "1.0";
+in
+{
+ rus-fin-pogovorki = callPackage ./base.nix {
+ pname = "rus-fin-pogovorki";
+ inherit version;
+ filename = "rus-fin_Pogovorki_${lib.replaceStrings [ "." ] [ "_" ] version}GD.zip";
+ description = "Русские поговорки и их финские аналоги (Rus-Fin)";
+ sha256 = "0zvzkdl2wb8dvfbnyv3azzxygqhzcpcj93l422kb2snssfm2451v";
+ };
+
+ fin-fin-synonyms = callPackage ./base.nix {
+ pname = "fin-fin-synonyms";
+ inherit version;
+ filename = "fin-fin_Synonyms_${lib.replaceStrings [ "." ] [ "_" ] version}GD.zip";
+ description = "Finnish Synonyms (Fin-Fin)";
+ sha256 = "1757v6x89jghl9hz57hq9dm8lgx6d48rnrpfc2zpijxv8xk8g5w7";
+ };
+}
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -58,6 +58,7 @@ lib.makeScope newScope (
### DATA
+ dadako = callPackage ./data/dicts/dadako { };
freedict = callPackage ./data/dicts/freedict { };
huzheng = callPackage ./data/dicts/huzheng { };
it-sanasto = callPackage ./data/dicts/it-sanasto { };