forked from mirrors/nixpkgs
consul: Remove dependency on go-deps
This commit is contained in:
parent
4ef3c64d2e
commit
b866da6826
|
@ -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
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue