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
This commit is contained in:
Karl Ericsson
2025-03-17 14:29:23 +01:00
parent e77290ae69
commit 36bd42bca9
+2
View File
@@ -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 \