mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 14:11:36 +00:00
928c93ea7b
Also rewrite the derivation to use buildGoPackage
33 lines
851 B
Nix
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;
|
|
};
|
|
}
|