nur-packages

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

commit 104e7547dfae03be7f8c215c71bbe3021cc77447
parent 191ace155ae1a06a1cbbba452495bbbbadceed21
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Wed, 23 Sep 2020 23:55:25 +0300

Add freedict

Diffstat:
Apkgs/data/dicts/freedict/base.nix | 26++++++++++++++++++++++++++
Apkgs/data/dicts/freedict/default.nix | 19+++++++++++++++++++
Mpkgs/default.nix | 1+
3 files changed, 46 insertions(+), 0 deletions(-)

diff --git a/pkgs/data/dicts/freedict/base.nix b/pkgs/data/dicts/freedict/base.nix @@ -0,0 +1,26 @@ +{ stdenvNoCC, fetchurl, lang, version, sha256 }: + +stdenvNoCC.mkDerivation { + pname = "freedict-${lang}"; + inherit version; + + src = fetchurl { + url = "https://download.freedict.org/dictionaries/${lang}/${version}/freedict-${lang}-${version}.dictd.tar.xz"; + inherit sha256; + }; + + installPhase = '' + install -Dm644 **.{dict.dz,index} -t $out + ''; + + preferLocalBuild = true; + + meta = with stdenvNoCC.lib; { + description = "FreeDict (${lang})"; + homepage = "https://freedict.org"; + license = licenses.free; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.all; + skip.ci = true; + }; +} diff --git a/pkgs/data/dicts/freedict/default.nix b/pkgs/data/dicts/freedict/default.nix @@ -0,0 +1,19 @@ +{ callPackage }: + +{ + deu-eng = callPackage ./base.nix { + lang = "deu-eng"; + version = "0.3.5"; + sha256 = "0sy68l3433pqsssyg2gnsjhcvjb7bn658hkwkd9rpf3m0jic9lgm"; + }; + epo-eng = callPackage ./base.nix { + lang = "epo-eng"; + version = "1.0.1"; + sha256 = "095xwqfc43dnm0g74i83lg03542f064jy2xbn3qnjxiwysz9ksnz"; + }; + fin-eng = callPackage ./base.nix { + lang = "fin-eng"; + version = "2020.02.08"; + sha256 = "036ai6avh5xq5f0bi8rzykc44rrqir71xw40w44fwknfd814jjh7"; + }; +} diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -51,6 +51,7 @@ lib.makeScope newScope ( ### DATA + freedict = callPackage ./data/dicts/freedict { }; huzheng = callPackage ./data/dicts/huzheng { }; it-sanasto = callPackage ./data/dicts/it-sanasto { }; wiktionary = callPackage ./data/dicts/wiktionary { };