diff --git a/pkgs/by-name/tr/tracexec/package.nix b/pkgs/by-name/tr/tracexec/package.nix index 27a209d5aaed..66df7b1c66ee 100644 --- a/pkgs/by-name/tr/tracexec/package.nix +++ b/pkgs/by-name/tr/tracexec/package.nix @@ -12,22 +12,30 @@ zlib, clang, }: -let + +rustPlatform.buildRustPackage rec { pname = "tracexec"; - version = "0.8.2"; -in -rustPlatform.buildRustPackage { - inherit pname version; + version = "0.10.0"; src = fetchFromGitHub { owner = "kxxt"; repo = "tracexec"; tag = "v${version}"; - hash = "sha256-qLvox7ef9eU1Vvg4gZGCKkic4+mcOIz9BZWTi/Q2grk="; + hash = "sha256-cqDGntubHbv6TJ0CSouTyCcDGpheLazbavYglHQRd10="; }; + # remove if updating to rust 1.85 + postPatch = '' + substituteInPlace Cargo.toml \ + --replace-fail "[package]" ''$'cargo-features = ["edition2024"]\n[package]' \ + --replace-fail 'rust-version = "1.85"' "" + ''; + + # remove if updating to rust 1.85 + env.RUSTC_BOOTSTRAP = 1; + useFetchCargoVendor = true; - cargoHash = "sha256-uFuMuSDcNKrlf2kpk/7+jaM7079Il63d/TtRiRIQZD4="; + cargoHash = "sha256-EY44uwf1b61UlulNwtN8JIG2CaEjxSnfuqE29/zdxBM="; hardeningDisable = [ "zerocallusedregs" ]; @@ -36,6 +44,7 @@ rustPlatform.buildRustPackage { pkg-config clang ]; + buildInputs = [ libbpf elfutils