commit 0362c09432601f8dd3950f6b9fd431721e3878e4
parent 8f7f36d739d3f8f8db43ba8a347b750472fc1fbd
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Thu, 17 Sep 2020 18:59:04 +0300
Merge branch 'master' of github.com:sikmir/nur-packages into master
Diffstat:
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;
+ };
+}