From 36bd42bca91fad276214fe5608a22176276f421f Mon Sep 17 00:00:00 2001 From: Karl Ericsson Date: Mon, 17 Mar 2025 14:09:21 +0100 Subject: [PATCH] trippy: avoid building example binaries Disable the default behavior of building example binaries "hello-world" and "traceroute". The latter is particularly problematic as it conflicts with the system's traceroute binary. Related: https://github.com/fujiapple852/trippy/pull/1503 --- pkgs/by-name/tr/trippy/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/tr/trippy/package.nix b/pkgs/by-name/tr/trippy/package.nix index 9df1eb487f23..a4fc54a9a0ac 100644 --- a/pkgs/by-name/tr/trippy/package.nix +++ b/pkgs/by-name/tr/trippy/package.nix @@ -21,6 +21,8 @@ rustPlatform.buildRustPackage rec { useFetchCargoVendor = true; cargoHash = "sha256-+PaSLq++tKA6dy4CI1EYrEDdXi2TI9XHjvMLfwDp/HA="; + cargoBuildFlags = [ "--package trippy" ]; + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' local INSTALL="$out/bin/trip" installShellCompletion --cmd trip \