mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
consul: Remove dependency on go-deps
This commit is contained in:
parent
4ef3c64d2e
commit
b866da6826
@ -39,6 +39,11 @@ stdenv.mkDerivation {
|
|||||||
outputs = [ "out" "ui" ];
|
outputs = [ "out" "ui" ];
|
||||||
|
|
||||||
installPhase = ''
|
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
|
# Install consul binary
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp consul $out/bin
|
cp consul $out/bin
|
||||||
|
@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
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
|
mkdir -p $out/bin
|
||||||
cp consul-template $out/bin
|
cp consul-template $out/bin
|
||||||
'';
|
'';
|
||||||
|
Loading…
Reference in New Issue
Block a user