Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 buildGoModule, 3 fetchFromGitHub, 4 lib, 5}: 6 7buildGoModule { 8 pname = "perkeep"; 9 # no release or tag since 2020 10 version = "0-unstable-2024-04-23"; 11 12 src = fetchFromGitHub { 13 owner = "perkeep"; 14 repo = "perkeep"; 15 rev = "bb15e6eb48bc9d614673f3af9432c70a76707c22"; 16 hash = "sha256-FUr+OgxYHVUzaahrG/3Adn5KNYHb0S/SKKFddskuvZA="; 17 }; 18 19 vendorHash = "sha256-+l1QV7/P0sS1S26xdyQygRZQGKqwbLUhgVtm/yHL6Cc="; 20 21 subPackages = [ 22 "server/perkeepd" 23 "cmd/pk" 24 "cmd/pk-get" 25 "cmd/pk-put" 26 "cmd/pk-mount" 27 ]; 28 29 # genfileembed gets built regardless of subPackages, to embed static 30 # content into the Perkeep binaries. Remove it in post-install to 31 # avoid polluting paths. 32 postInstall = '' 33 rm -f $out/bin/genfileembed 34 ''; 35 36 meta = { 37 description = "Way of storing, syncing, sharing, modelling and backing up content (née Camlistore)"; 38 homepage = "https://perkeep.org"; 39 license = lib.licenses.asl20; 40 maintainers = with lib.maintainers; [ 41 kalbasit 42 gador 43 ]; 44 }; 45}