3
0
Fork 0
forked from mirrors/nixpkgs

consul: Remove dependency on go-deps

This commit is contained in:
William A. Kennington III 2015-02-25 15:07:10 -08:00
parent 4ef3c64d2e
commit b866da6826
2 changed files with 10 additions and 0 deletions

View file

@ -39,6 +39,11 @@ stdenv.mkDerivation {
outputs = [ "out" "ui" ];
installPhase = ''
# Fix references to go-deps in the binary
hash=$(echo $src | sed 's,.*/\([^/-]*\).*,\1,g')
xs=$(printf 'x%.0s' $(seq 2 $(echo $hash | wc -c)))
sed -i "s,$hash,$xs,g" consul
# Install consul binary
mkdir -p $out/bin
cp consul $out/bin

View file

@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
'';
installPhase = ''
# Fix references to go-deps in the binary
hash=$(echo $src | sed 's,.*/\([^/-]*\).*,\1,g')
xs=$(printf 'x%.0s' $(seq 2 $(echo $hash | wc -c)))
sed -i "s,$hash,$xs,g" consul-template
mkdir -p $out/bin
cp consul-template $out/bin
'';