nixpkgs/pkgs/applications/misc/camlistore/default.nix

32 lines
718 B
Nix
Raw Normal View History

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