2017-04-30 12:33:58 +00:00
|
|
|
{ stdenv, lib, go, fetchgit, git, buildGoPackage }:
|
2014-06-23 10:26:56 +00:00
|
|
|
|
2017-04-30 12:33:58 +00:00
|
|
|
buildGoPackage rec {
|
2014-06-23 10:26:56 +00:00
|
|
|
name = "camlistore-${version}";
|
2017-04-30 12:33:58 +00:00
|
|
|
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";
|
2017-04-30 12:33:58 +00:00
|
|
|
rev = "refs/tags/${version}";
|
|
|
|
sha256 = "1ypplr939ny9drsdngapa029fgak0wic8sbna588m79cbl17psya";
|
2016-06-07 19:01:41 +00:00
|
|
|
leaveDotGit = true;
|
2014-06-23 10:26:56 +00:00
|
|
|
};
|
|
|
|
|
2017-04-30 12:33:58 +00:00
|
|
|
buildInputs = [ git ];
|
2014-06-23 10:26:56 +00:00
|
|
|
|
2017-04-30 12:33:58 +00:00
|
|
|
goPackagePath = "";
|
2014-06-23 10:26:56 +00:00
|
|
|
buildPhase = ''
|
2017-04-30 12:33:58 +00:00
|
|
|
cd go/src/camlistore
|
2014-06-23 10:26:56 +00:00
|
|
|
go run make.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-04-30 12:33:58 +00:00
|
|
|
mkdir -p $bin/bin
|
|
|
|
rm bin/README
|
|
|
|
cp bin/* $bin/bin
|
2014-06-23 10:26:56 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 14:21:08 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|