nur-packages

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

commit dfb8fc9ec7a0382197239e64c0d23391dd18a682
parent d8afc89236a8a37ca3ec2bad7d5626797c7b9ef5
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Fri, 30 Oct 2020 21:53:09 +0300

Add gdcv

Diffstat:
Mnix/sources.json | 14++++++++++++++
Apkgs/tools/dict/gdcv/default.nix | 28++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -139,6 +139,20 @@ "url": "https://github.com/mhulden/foma/archive/b44022c7d9d347dc7392aabbf72c82e558767675.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "gdcv": { + "branch": "master", + "builtin": false, + "date": "2020-09-28T19:00:09Z", + "description": "GoldenDict console version and emacs dynamic module", + "homepage": "https://github.com/konstare/gdcv", + "owner": "konstare", + "repo": "gdcv", + "rev": "39fd2667362710f69c13dd596e112b0391e0a57e", + "sha256": "1v9micdr6fml1lbhxndbynghrajix5vgp8qg7b7bdsa2wngzlr16", + "type": "tarball", + "url": "https://github.com/konstare/gdcv/archive/39fd2667362710f69c13dd596e112b0391e0a57e.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "gef": { "branch": "dev", "builtin": false, diff --git a/pkgs/tools/dict/gdcv/default.nix b/pkgs/tools/dict/gdcv/default.nix @@ -0,0 +1,28 @@ +{ stdenv, pkgconfig, emacs, zlib, sources }: +let + pname = "gdcv"; + date = stdenv.lib.substring 0 10 sources.gdcv.date; + version = "unstable-" + date; +in +stdenv.mkDerivation { + inherit pname version; + src = sources.gdcv; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ emacs zlib ]; + + makeFlags = [ "gdcv" "emacs-module" ]; + + installPhase = '' + install -Dm755 gdcv -t $out/bin + install -Dm644 gdcv-elisp.so gdcv.el -t $out/share/emacs/site-lisp + ''; + + meta = with stdenv.lib; { + inherit (sources.gdcv) description homepage; + license = licenses.gpl3; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}