nur-packages

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

commit 78a1a994d587f4ad45e3085482748dc28a4a8648
parent ce5a3173658757708a13e5d8321708e687d5430e
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Thu, 17 Sep 2020 12:13:00 +0300

Add gloggery

Diffstat:
Mnix/sources.json | 14++++++++++++++
Mpkgs/default.nix | 1+
Apkgs/tools/misc/gloggery/default.nix | 25+++++++++++++++++++++++++
3 files changed, 40 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -219,6 +219,20 @@ "url": "https://github.com/glauth/glauth/archive/a92f9a7028fdf68952ffbed4958167b928dbc483.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "gloggery": { + "branch": "main", + "builtin": false, + "date": "2020-08-26T01:08:55Z", + "description": "Gemtext blog static site generator", + "homepage": "https://github.com/kconner/gloggery", + "owner": "kconner", + "repo": "gloggery", + "rev": "72e142f98d02f015d38dc92346376ce5b0aee2d8", + "sha256": "05h431xw6fw9yn148vvyhr6dfssrz96lzl6q2sjbhq5h6yy0czyi", + "type": "tarball", + "url": "https://github.com/kconner/gloggery/archive/72e142f98d02f015d38dc92346376ce5b0aee2d8.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "go-staticmaps": { "branch": "master", "builtin": false, diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -126,6 +126,7 @@ lib.makeScope newScope ( fx-bin = callPackage ./tools/text/fx/bin.nix { }; garmin-uploader = callPackage ./tools/misc/garmin-uploader { }; gimgtools = callPackage ./tools/geo/gimgtools { }; + gloggery = callPackage ./tools/misc/gloggery { }; gmaptool = callPackage ./tools/geo/gmaptool { }; go-staticmaps = callPackage ./tools/geo/go-staticmaps { }; gpx-layer = perlPackages.callPackage ./tools/geo/gpx-layer { diff --git a/pkgs/tools/misc/gloggery/default.nix b/pkgs/tools/misc/gloggery/default.nix @@ -0,0 +1,25 @@ +{ stdenv, go, sources }: +let + pname = "gloggery"; + date = stdenv.lib.substring 0 10 sources.gloggery.date; + version = "unstable-" + date; +in +stdenv.mkDerivation { + inherit pname version; + src = sources.gloggery; + + nativeBuildInputs = [ go ]; + + makeFlags = [ "GOCACHE=$(TMPDIR)/go-cache" "HOME=$(out)" ]; + + preInstall = "install -dm755 $out/{bin,share}"; + + postInstall = "mv $out/.gloggery $out/share/glogger"; + + meta = with stdenv.lib; { + inherit (sources.gloggery) description homepage; + license = licenses.free; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}