Skip to content

Commit 11272e9

Browse files
lheckemannMic92
authored andcommittedMay 9, 2017
camlistore: use buildGoPackage
this removes go references from the package fixes #25346
1 parent c3bbc8a commit 11272e9

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed
 

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

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
1-
{ stdenv, lib, go, fetchgit, git }:
1+
{ stdenv, lib, go, fetchgit, git, buildGoPackage }:
22

3-
stdenv.mkDerivation rec {
4-
version = "0.9";
3+
buildGoPackage rec {
54
name = "camlistore-${version}";
5+
version = "0.9";
66

77
src = fetchgit {
88
url = "https://github.com/camlistore/camlistore";
9-
rev = "7b78c50007780643798adf3fee4c84f3a10154c9";
10-
sha256 = "1vc4ca2rn8da0z0viv3vv2p8z211zdvq83jh2x2izdckdz204n17";
9+
rev = "refs/tags/${version}";
10+
sha256 = "1ypplr939ny9drsdngapa029fgak0wic8sbna588m79cbl17psya";
1111
leaveDotGit = true;
1212
};
1313

14-
buildInputs = [ go git ];
14+
buildInputs = [ git ];
1515

16+
goPackagePath = "";
1617
buildPhase = ''
18+
cd go/src/camlistore
1719
go run make.go
18-
rm bin/README
1920
'';
2021

2122
installPhase = ''
22-
mkdir -p $out/bin
23-
cp bin/* $out/bin
23+
mkdir -p $bin/bin
24+
rm bin/README
25+
cp bin/* $bin/bin
2426
'';
2527

2628
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)
Please sign in to comment.