mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
camlistore: use buildGoPackage
this removes go references from the package fixes #25346
This commit is contained in:
parent
c3bbc8adea
commit
11272e930f
1 changed files with 11 additions and 9 deletions
|
@ -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; {
|
||||||
|
|
Loading…
Reference in a new issue