nur-packages

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

commit 42cb243d7fc5d325d2deca9279efe1dc891037a9
parent 54f40c86147125f3e39e4315508273f4cc24ebac
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Fri, 26 Jun 2020 20:27:07 +0300

Add odict

Diffstat:
Mnix/sources.json | 13+++++++++++++
Mpkgs/default.nix | 1+
Apkgs/tools/dict/odict/default.nix | 16++++++++++++++++
3 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -460,6 +460,19 @@ "url": "https://github.com/jarun/nnn/archive/235eb296149ff1d16accadc37c52542b7f18ef2d.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "odict": { + "branch": "master", + "builtin": false, + "description": "A blazingly-fast replacement for Apple Dictionaries, Babylon, StarDict, etc.", + "homepage": "https://odict.org", + "owner": "odict", + "repo": "odict", + "rev": "0a0a6e6a592ccca3f304fcb4bd4ab7c25e181185", + "sha256": "14422lg280rmsbgj1n9r013zbdjk210b9czr8p0pa09d70jx24dw", + "type": "tarball", + "url": "https://github.com/odict/odict/archive/0a0a6e6a592ccca3f304fcb4bd4ab7c25e181185.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "openmtbmap_openvelomap_linux": { "branch": "master", "builtin": false, diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -138,6 +138,7 @@ lib.makeScope newScope ( inherit cgpsmapper ocad2mp; }; ocad2mp = callPackage ./tools/geo/ocad2mp {}; + odict = callPackage ./tools/dict/odict {}; openmtbmap_openvelomap_linux = callPackage ./tools/geo/openmtbmap_openvelomap_linux {}; osm2mp = perlPackages.callPackage ./tools/geo/osm2mp { inherit sources; diff --git a/pkgs/tools/dict/odict/default.nix b/pkgs/tools/dict/odict/default.nix @@ -0,0 +1,16 @@ +{ lib, buildGoModule, sources }: + +buildGoModule rec { + pname = "odict"; + version = lib.substring 0 7 src.rev; + src = sources.odict; + + vendorSha256 = "083mvrgpv9hyfmi26sankv940qp0bmyr55jm33dx1ivhd2xhkg78"; + + meta = with lib; { + inherit (src) description homepage; + license = licenses.free; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.unix; + }; +}