2016-06-07 21:01:41 +02:00
|
|
|
{ stdenv, lib, go, fetchgit, git }:
|
2014-06-23 12:26:56 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-06-07 21:01:41 +02:00
|
|
|
version = "0.9";
|
2014-06-23 12:26:56 +02:00
|
|
|
name = "camlistore-${version}";
|
|
|
|
|
2016-06-07 21:01:41 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/camlistore/camlistore";
|
|
|
|
rev = "7b78c50007780643798adf3fee4c84f3a10154c9";
|
|
|
|
sha256 = "1vc4ca2rn8da0z0viv3vv2p8z211zdvq83jh2x2izdckdz204n17";
|
|
|
|
leaveDotGit = true;
|
2014-06-23 12:26:56 +02:00
|
|
|
};
|
|
|
|
|
2016-06-07 21:01:41 +02:00
|
|
|
buildInputs = [ go git ];
|
2014-06-23 12:26:56 +02:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
go run make.go
|
|
|
|
rm bin/README
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2014-07-22 11:01:32 +02:00
|
|
|
mkdir -p $out/bin
|
2014-06-23 12:26:56 +02:00
|
|
|
cp bin/* $out/bin
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "A way of storing, syncing, sharing, modelling and backing up content";
|
2014-06-23 12:26:56 +02:00
|
|
|
homepage = https://camlistore.org;
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|