nixpkgs/pkgs/applications/misc/camlistore/default.nix

36 lines
816 B
Nix
Raw Normal View History

{ stdenv, lib, go, fetchgit, git, buildGoPackage }:
2014-06-23 10:26:56 +00:00
buildGoPackage rec {
2014-06-23 10:26:56 +00:00
name = "camlistore-${version}";
version = "0.9";
2014-06-23 10:26:56 +00:00
2016-06-07 19:01:41 +00:00
src = fetchgit {
url = "https://github.com/camlistore/camlistore";
rev = "refs/tags/${version}";
sha256 = "1ypplr939ny9drsdngapa029fgak0wic8sbna588m79cbl17psya";
2016-06-07 19:01:41 +00:00
leaveDotGit = true;
2014-06-23 10:26:56 +00:00
};
buildInputs = [ git ];
2014-06-23 10:26:56 +00:00
goPackagePath = "";
2014-06-23 10:26:56 +00:00
buildPhase = ''
cd go/src/camlistore
2014-06-23 10:26:56 +00:00
go run make.go
'';
installPhase = ''
mkdir -p $bin/bin
rm bin/README
cp bin/* $bin/bin
2014-06-23 10:26:56 +00:00
'';
meta = with stdenv.lib; {
description = "A way of storing, syncing, sharing, modelling and backing up content";
2014-06-23 10:26:56 +00:00
homepage = https://camlistore.org;
license = licenses.asl20;
maintainers = with maintainers; [ cstrahan ];
platforms = platforms.unix;
};
}