15 src = fetchFromGitHub {
16 owner = "equinix-labs";
19 hash = "sha256-JYi9CbP4mUhX0zNjhi6QlBzLKcj2zdPwlyBSIYKp6vk=";
22 vendorHash = "sha256-fWQz7ZrU8gulhpOHSN8Prn4EMC0KXy942FZD/PMsLxc=";
26 ln -s $GOPATH/bin/otel-cli .
28 + lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
29 substituteInPlace main_test.go \
30 --replace-fail 'const minimumPath = `/bin:/usr/bin`' 'const minimumPath = `${
38 patches = [ ./patches/bin-echo-patch.patch ];
40 passthru.updateScript = nix-update-script { };
43 homepage = "https://github.com/equinix-labs/otel-cli";
44 description = "Command-line tool for sending OpenTelemetry traces";
45 changelog = "https://github.com/equinix-labs/otel-cli/releases/tag/v${version}";
46 license = licenses.asl20;
47 maintainers = with lib.maintainers; [
51 mainProgram = "otel-cli";