1 { buildGoModule, fetchurl, fetchFromGitHub, lib }:
5 url = "https://storage.googleapis.com/perkeep-release/gopherjs/goui.js";
6 sha256 = "0xbkdpd900gnmzj8p0x38dn4sv170pdvgzcvzsq70s80p6ykkh6g";
9 publisherJS = fetchurl {
10 url = "https://storage.googleapis.com/perkeep-release/gopherjs/publisher.js";
11 sha256 = "09hd7p0xscqnh612jbrjvh3njmlm4292zd5sbqx2lg0aw688q8p2";
15 "perkeep.org/server/perkeepd"
17 "perkeep.org/cmd/pk-get"
18 "perkeep.org/cmd/pk-put"
19 "perkeep.org/cmd/pk-mount"
22 in buildGoModule rec {
26 src = fetchFromGitHub {
30 sha256 = "07j5gplk4kcrbazyg4m4bwggzlz5gk89h90r14jvfcpms7v5nrll";
33 vendorSha256 = "1af9a6r9qfrak0n5xyv9z8n7gn7xw2sdjn4s9bwwidkrdm81iq6b";
34 deleteVendor = true; # Vendor is out of sync with go.mod
37 cd "$NIX_BUILD_TOP/source"
39 # Skip network fetches
40 cp ${publisherJS} app/publisher/publisher.js
41 cp ${gouiJS} server/perkeepd/ui/goui.js
43 go run make.go -offline=true -targets=${lib.concatStringsSep "," packages}
46 # genfileembed gets built regardless of -targets, to embed static
47 # content into the Perkeep binaries. Remove it in post-install to
48 # avoid polluting paths.
50 rm -f $out/bin/genfileembed
54 description = "A way of storing, syncing, sharing, modelling and backing up content (née Camlistore)";
55 homepage = "https://perkeep.org";
56 license = licenses.asl20;
57 maintainers = with maintainers; [ cstrahan danderson kalbasit ];