default.nix (761B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 go, 6 }: 7 8 stdenv.mkDerivation (finalAttrs: { 9 pname = "gloggery"; 10 version = "1.0"; 11 12 src = fetchFromGitHub { 13 owner = "kconner"; 14 repo = "gloggery"; 15 rev = "v${finalAttrs.version}"; 16 hash = "sha256-tWTJXRtm/8cSEbK40fi9PVOg9w/qC0CBFZWyT7vSo80="; 17 }; 18 19 nativeBuildInputs = [ go ]; 20 21 makeFlags = [ 22 "GOCACHE=$(TMPDIR)/go-cache" 23 "HOME=$(out)" 24 ]; 25 26 preInstall = "install -dm755 $out/{bin,share}"; 27 28 postInstall = "mv $out/.gloggery $out/share/glogger"; 29 30 meta = { 31 description = "Gemtext blog static site generator"; 32 homepage = "https://github.com/kconner/gloggery"; 33 license = lib.licenses.free; 34 maintainers = [ lib.maintainers.sikmir ]; 35 platforms = lib.platforms.unix; 36 }; 37 })