nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 6573f6882743d8db0ea0df642a16846ed2064d73
parent 9e12176e4a16d3bdb5ad8b32171a894c2c51b916
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 30 Dec 2020 02:35:13 +0300

Add komputeko dict

Diffstat:
Apkgs/data/dicts/komputeko/default.nix | 32++++++++++++++++++++++++++++++++
Mpkgs/default.nix | 1+
2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/pkgs/data/dicts/komputeko/default.nix b/pkgs/data/dicts/komputeko/default.nix @@ -0,0 +1,32 @@ +{ stdenvNoCC, fetchurl, jq, stardict-tools }: + +stdenvNoCC.mkDerivation { + pname = "komputeko"; + version = "2020-06-23"; + + src = fetchurl { + url = "https://komputeko.net/data.json"; + sha256 = "11yjhp1pii74zs1i7lcih8spw447999mv0y3jzyglak2xdc293cs"; + }; + + dontUnpack = true; + + nativeBuildInputs = [ jq stardict-tools ]; + + buildPhase = '' + cat $src | \ + jq -r '.words[]|select(has("en") and has("eo"))|[.en[0].word,([.eo[].word]|join(", "))]|@tsv' > komputeko.tsv + stardict-tabfile komputeko.tsv + ''; + + installPhase = "install -Dm644 *.{dict,idx,ifo} -t $out"; + + meta = with stdenvNoCC.lib; { + homepage = "https://komputeko.net/"; + description = "Prikomputila terminokolekto"; + maintainers = [ maintainers.sikmir ]; + license = licenses.cc-by-sa-40; + platforms = platforms.all; + skip.ci = true; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -65,6 +65,7 @@ lib.makeScope newScope ( freedict = callPackage ./data/dicts/freedict { }; huzheng = callPackage ./data/dicts/huzheng { }; it-sanasto = callPackage ./data/dicts/it-sanasto { }; + komputeko = callPackage ./data/dicts/komputeko { }; tatoeba = callPackage ./data/dicts/tatoeba { }; wiktionary = callPackage ./data/dicts/wiktionary { };