diff --git a/pkgs/development/tools/misc/pwninit/default.nix b/pkgs/development/tools/misc/pwninit/default.nix index dcea47449cab..b1df19f2441b 100644 --- a/pkgs/development/tools/misc/pwninit/default.nix +++ b/pkgs/development/tools/misc/pwninit/default.nix @@ -3,6 +3,8 @@ , fetchFromGitHub , rustPlatform , openssl +, elfutils +, makeBinaryWrapper , pkg-config , xz , Security @@ -20,7 +22,11 @@ rustPlatform.buildRustPackage rec { }; buildInputs = [ openssl xz ] ++ lib.optionals stdenv.isDarwin [ Security ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config makeBinaryWrapper ]; + postInstall = '' + wrapProgram $out/bin/pwninit \ + --prefix PATH : "${lib.getBin elfutils}/bin" + ''; doCheck = false; # there are no tests to run cargoSha256 = "sha256-LPypmFeF9NZOX1ogpIqc++Pun7pInKzpxYiGUvSUcso=";