nixpkgs/pkgs/applications/misc/perkeep/default.nix
Wael M. Nasreddine 928c93ea7b perkeep: 20170505 -> 0.10.1
Also rewrite the derivation to use buildGoPackage
2018-07-23 13:04:35 -07:00

33 lines
851 B
Nix

{ buildGo110Package, fetchzip, lib }:
buildGo110Package rec {
name = "perkeep-${version}";
version = "0.10.1";
src = fetchzip {
url = "https://perkeep.org/dl/perkeep-${version}-src.zip";
sha256 = "0rqibc6w4m1r50i2pjcgz1k9dxh18v7jwj4s29y470bc526wv422";
};
goPackagePath = "perkeep.org";
buildPhase = ''
cd "$NIX_BUILD_TOP/go/src/$goPackagePath"
go run make.go
'';
# devcam is only useful when developing perkeep, we should not install it as
# part of this derivation.
postInstall = ''
rm -f $out/bin/devcam
'';
meta = with lib; {
description = "A way of storing, syncing, sharing, modelling and backing up content (née Camlistore)";
homepage = https://perkeep.org;
license = licenses.asl20;
maintainers = with maintainers; [ cstrahan kalbasit ];
platforms = platforms.unix;
};
}