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