commit 3cc6b739274ab207e3e27d18c92fbd5b5210128e parent 283c33bd713e3988669f16c14e707601455b615e Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Tue, 3 Nov 2020 02:09:50 +0300 Add gurl Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/tools/networking/gurl/default.nix | | | 30 | ++++++++++++++++++++++++++++++ |
2 files changed, 31 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -151,6 +151,7 @@ lib.makeScope newScope ( gpxtrackposter = callPackage ./tools/geo/gpxtrackposter { }; gt-bash-client = callPackage ./tools/dict/gt-bash-client { }; gt4gd = callPackage ./tools/dict/gt4gd { }; + gurl = callPackage ./tools/networking/gurl { }; imgdecode = callPackage ./tools/geo/imgdecode { }; ish = callPackage ./tools/networking/ish { }; lsdreader = callPackage ./tools/dict/lsdreader { }; diff --git a/pkgs/tools/networking/gurl/default.nix b/pkgs/tools/networking/gurl/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, zig }: +let + pname = "gurl"; + version = "unstable-2020-09-19"; +in +stdenv.mkDerivation { + inherit pname version; + + src = fetchFromGitHub { + owner = "MasterQ32"; + repo = pname; + rev = "e5a61b2db685a53cdbdfb1c6ac160e938683d4ec"; + sha256 = "1y738ip0b6ck0ibybibqw8dlx37mrqamygvm81jv9wqp1sxsi7gb"; + fetchSubmodules = true; + }; + + nativeBuildInputs = [ zig ]; + + buildPhase = "HOME=$TMP zig build install"; + + installPhase = "install -Dm755 zig-cache/bin/gurl -t $out/bin"; + + meta = with stdenv.lib; { + description = "A curl-like cli application to interact with Gemini sites"; + homepage = "https://github.com/MasterQ32/gurl"; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}