camlistore: use buildGoPackage

this removes go references from the package

fixes #25346
This commit is contained in:
Linus Heckemann 2017-04-30 13:33:58 +01:00 committed by Jörg Thalheim
parent c3bbc8adea
commit 11272e930f
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -1,26 +1,28 @@
{ stdenv, lib, go, fetchgit, git }: { stdenv, lib, go, fetchgit, git, buildGoPackage }:
stdenv.mkDerivation rec { buildGoPackage rec {
version = "0.9";
name = "camlistore-${version}"; name = "camlistore-${version}";
version = "0.9";
src = fetchgit { src = fetchgit {
url = "https://github.com/camlistore/camlistore"; url = "https://github.com/camlistore/camlistore";
rev = "7b78c50007780643798adf3fee4c84f3a10154c9"; rev = "refs/tags/${version}";
sha256 = "1vc4ca2rn8da0z0viv3vv2p8z211zdvq83jh2x2izdckdz204n17"; sha256 = "1ypplr939ny9drsdngapa029fgak0wic8sbna588m79cbl17psya";
leaveDotGit = true; leaveDotGit = true;
}; };
buildInputs = [ go git ]; buildInputs = [ git ];
goPackagePath = "";
buildPhase = '' buildPhase = ''
cd go/src/camlistore
go run make.go go run make.go
rm bin/README
''; '';
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $bin/bin
cp bin/* $out/bin rm bin/README
cp bin/* $bin/bin
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {