camlistore: use buildGoPackage

this removes go references from the package

fixes #25346

authored by Linus Heckemann and committed by Jörg Thalheim 11272e93 c3bbc8ad

+11 -9
+11 -9
pkgs/applications/misc/camlistore/default.nix
··· 1 - { stdenv, lib, go, fetchgit, git }: 1 + { stdenv, lib, go, fetchgit, git, buildGoPackage }: 2 2 3 - stdenv.mkDerivation rec { 4 - version = "0.9"; 3 + buildGoPackage rec { 5 4 name = "camlistore-${version}"; 5 + version = "0.9"; 6 6 7 7 src = fetchgit { 8 8 url = "https://github.com/camlistore/camlistore"; 9 - rev = "7b78c50007780643798adf3fee4c84f3a10154c9"; 10 - sha256 = "1vc4ca2rn8da0z0viv3vv2p8z211zdvq83jh2x2izdckdz204n17"; 9 + rev = "refs/tags/${version}"; 10 + sha256 = "1ypplr939ny9drsdngapa029fgak0wic8sbna588m79cbl17psya"; 11 11 leaveDotGit = true; 12 12 }; 13 13 14 - buildInputs = [ go git ]; 14 + buildInputs = [ git ]; 15 15 16 + goPackagePath = ""; 16 17 buildPhase = '' 18 + cd go/src/camlistore 17 19 go run make.go 18 - rm bin/README 19 20 ''; 20 21 21 22 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 24 26 ''; 25 27 26 28 meta = with stdenv.lib; {