perkeep: 0.11 -> 0-unstable-2024-04-23 (#360175)

* perkeep: format

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>

* perkeep: 0.11 -> 0-unstable-2024-04-23

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>

* perkeep: add gador as co-maintainer

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>

---------

Signed-off-by: Florian Brandes <florian.brandes@posteo.de>

authored by Florian and committed by GitHub 8eafe1f1 2766b622

+25 -40
+25 -40
pkgs/by-name/pe/perkeep/package.nix
··· 1 - { buildGoModule, fetchurl, fetchFromGitHub, lib }: 1 + { 2 + buildGoModule, 3 + fetchFromGitHub, 4 + lib, 5 + }: 2 6 3 - let 4 - gouiJS = fetchurl { 5 - url = "https://storage.googleapis.com/perkeep-release/gopherjs/goui.js"; 6 - hash = "sha256-z8A5vbkAaXCw/pv9t9sFJ2xNbEOjg4vkr/YBkNptc3U="; 7 - }; 8 - 9 - publisherJS = fetchurl { 10 - url = "https://storage.googleapis.com/perkeep-release/gopherjs/publisher.js"; 11 - hash = "sha256-4iKMkOEKPCo6Xrq0L5IglVZpB9wyLymCgRYz3cE9DSY="; 12 - }; 13 - 14 - packages = [ 15 - "perkeep.org/server/perkeepd" 16 - "perkeep.org/cmd/pk" 17 - "perkeep.org/cmd/pk-get" 18 - "perkeep.org/cmd/pk-put" 19 - "perkeep.org/cmd/pk-mount" 20 - ]; 21 - 22 - in 23 - buildGoModule rec { 7 + buildGoModule { 24 8 pname = "perkeep"; 25 - version = "0.11"; 9 + # no release or tag since 2020 10 + version = "0-unstable-2024-04-23"; 26 11 27 12 src = fetchFromGitHub { 28 13 owner = "perkeep"; 29 14 repo = "perkeep"; 30 - rev = version; 31 - hash = "sha256-lGZb9tH1MrclCRkkmNB85dP/Hl+kkue/WplNMul9RR4="; 15 + rev = "bb15e6eb48bc9d614673f3af9432c70a76707c22"; 16 + hash = "sha256-FUr+OgxYHVUzaahrG/3Adn5KNYHb0S/SKKFddskuvZA="; 32 17 }; 33 18 34 - vendorHash = "sha256-y+AYUG15tsj5SppY2bTg/dh3LPpp+14smCo7nLJRyak="; 35 - deleteVendor = true; # Vendor is out of sync with go.mod 36 - 37 - buildPhase = '' 38 - cd "$NIX_BUILD_TOP/source" 39 - 40 - # Skip network fetches 41 - cp ${publisherJS} app/publisher/publisher.js 42 - cp ${gouiJS} server/perkeepd/ui/goui.js 19 + vendorHash = "sha256-+l1QV7/P0sS1S26xdyQygRZQGKqwbLUhgVtm/yHL6Cc="; 43 20 44 - go run make.go -offline=true -targets=${lib.concatStringsSep "," packages} 45 - ''; 21 + subPackages = [ 22 + "server/perkeepd" 23 + "cmd/pk" 24 + "cmd/pk-get" 25 + "cmd/pk-put" 26 + "cmd/pk-mount" 27 + ]; 46 28 47 - # genfileembed gets built regardless of -targets, to embed static 29 + # genfileembed gets built regardless of subPackages, to embed static 48 30 # content into the Perkeep binaries. Remove it in post-install to 49 31 # avoid polluting paths. 50 32 postInstall = '' 51 33 rm -f $out/bin/genfileembed 52 34 ''; 53 35 54 - meta = with lib; { 36 + meta = { 55 37 description = "Way of storing, syncing, sharing, modelling and backing up content (née Camlistore)"; 56 38 homepage = "https://perkeep.org"; 57 - license = licenses.asl20; 58 - maintainers = with maintainers; [ kalbasit ]; 39 + license = lib.licenses.asl20; 40 + maintainers = with lib.maintainers; [ 41 + kalbasit 42 + gador 43 + ]; 59 44 }; 60 45 }