2016-06-07 20:01:41 +01:00
|
|
|
{ stdenv, lib, go, fetchgit, git }:
|
2014-06-23 11:26:56 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-07 20:01:41 +01:00
|
|
|
version = "0.9";
|
2014-06-23 11:26:56 +01:00
|
|
|
name = "camlistore-${version}";
|
|
|
|
|
2016-06-07 20:01:41 +01:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/camlistore/camlistore";
|
|
|
|
rev = "7b78c50007780643798adf3fee4c84f3a10154c9";
|
|
|
|
sha256 = "1vc4ca2rn8da0z0viv3vv2p8z211zdvq83jh2x2izdckdz204n17";
|
|
|
|
leaveDotGit = true;
|
2014-06-23 11:26:56 +01:00
|
|
|
};
|
|
|
|
|
2016-06-07 20:01:41 +01:00
|
|
|
buildInputs = [ go git ];
|
2014-06-23 11:26:56 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
go run make.go
|
|
|
|
rm bin/README
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-07-22 10:01:32 +01:00
|
|
|
mkdir -p $out/bin
|
2014-06-23 11:26:56 +01:00
|
|
|
cp bin/* $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|