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