Merge pull request #235060 from emattiza/update/otel-cli-0-3-0
This commit is contained in:
commit
d784a110b6
1 changed files with 5 additions and 5 deletions
|
@ -1,23 +1,23 @@
|
|||
{ lib, bash, buildGoModule, fetchFromGitHub, getent, nix-update-script, stdenv }:
|
||||
{ lib, bash, buildGoModule, fetchFromGitHub, getent, coreutils, nix-update-script, stdenv }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "otel-cli";
|
||||
version = "0.2.0";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "equinix-labs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-hez/jHet7W4FnOjgLb0jE1FhoNimiLGaOuTI44UWbSA=";
|
||||
hash = "sha256-edxDPxUamZiBezMj2SII/zq8atnyZVWtboUJsShDAyw=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-gVRgqBgiFnPU6MRZi/Igs7nDPMwJYsdln7vPAcxTvPU=";
|
||||
vendorHash = "sha256-MlLFTi+O925NA73zDRrk0AgJzwtdNBhCxDjmniNPwio=";
|
||||
|
||||
preCheck = ''
|
||||
ln -s $GOPATH/bin/otel-cli .
|
||||
'' + lib.optionalString (!stdenv.isDarwin) ''
|
||||
substituteInPlace main_test.go \
|
||||
--replace 'const minimumPath = `/bin:/usr/bin`' 'const minimumPath = `${lib.makeBinPath [ getent ]}`'
|
||||
--replace 'const minimumPath = `/bin:/usr/bin`' 'const minimumPath = `${lib.makeBinPath [ getent coreutils ]}`'
|
||||
'';
|
||||
|
||||
passthru.updateScript = nix-update-script {};
|
||||
|
|
Loading…
Reference in a new issue