nur-packages

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

commit ce5a3173658757708a13e5d8321708e687d5430e
parent ea34ba4e14715eef934b61b60c76bee210e22573
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Thu, 10 Sep 2020 16:19:59 +0300

Add dict2rest

Diffstat:
Mnix/sources.json | 14++++++++++++++
Mpkgs/default.nix | 1+
Apkgs/servers/dict2rest/default.nix | 19+++++++++++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -69,6 +69,20 @@ "url": "https://github.com/ericfischer/datamaps/archive/76e620adabbedabd6866b23b30c145b53bae751e.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "dict2rest": { + "branch": "master", + "builtin": false, + "date": "2016-12-05T08:16:58Z", + "description": "A simple proxy service providing an HTTP interface to a Dict protocol (RFC 2229) server", + "homepage": "https://github.com/felix/go-dict2rest", + "owner": "felix", + "repo": "go-dict2rest", + "rev": "b049991a46a2f619344bd6e915745703864d0134", + "sha256": "0d3fbqyyzy1rxpv76phkbfzrx9ianckq30a87k982rchs6qw36xz", + "type": "tarball", + "url": "https://github.com/felix/go-dict2rest/archive/b049991a46a2f619344bd6e915745703864d0134.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "docker-reg-tool": { "branch": "master", "builtin": false, diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -170,6 +170,7 @@ lib.makeScope newScope ( ### SERVERS + dict2rest = callPackage ./servers/dict2rest { }; geminid = callPackage ./servers/geminid { }; glauth = callPackage ./servers/glauth { }; mbtileserver = callPackage ./servers/mbtileserver { }; diff --git a/pkgs/servers/dict2rest/default.nix b/pkgs/servers/dict2rest/default.nix @@ -0,0 +1,19 @@ +{ lib, buildGoPackage, sources }: +let + pname = "dict2rest"; + date = lib.substring 0 10 sources.dict2rest.date; + version = "unstable-" + date; +in +buildGoPackage { + inherit pname version; + src = sources.dict2rest; + + goPackagePath = "github.com/felix/go-dict2rest"; + + meta = with lib; { + inherit (sources.dict2rest) description homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}