2014-06-23 11:26:56 +01:00
|
|
|
{ stdenv, lib, go, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-09-16 05:22:55 +01:00
|
|
|
version = "0.8";
|
2014-06-23 11:26:56 +01:00
|
|
|
name = "camlistore-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-09-16 05:22:55 +01:00
|
|
|
url = "https://github.com/bradfitz/camlistore/archive/${version}.tar.gz";
|
|
|
|
sha256 = "03y5zs4i9lx93apqqqfgmbxamk06z3w1q763qp0lvb15mq45gdv1";
|
2014-06-23 11:26:56 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ go ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|