tracexec: 0.5.2 -> 0.8.0 (#358870)

authored by Franz Pletz and committed by GitHub f3258367 ee15da51

+31 -14
+31 -14
pkgs/by-name/tr/tracexec/package.nix
··· 5 rustPlatform, 6 cargo-about, 7 nix-update-script, 8 }: 9 let 10 pname = "tracexec"; 11 - version = "0.5.2"; 12 in 13 rustPlatform.buildRustPackage { 14 inherit pname version; ··· 17 owner = "kxxt"; 18 repo = "tracexec"; 19 rev = "refs/tags/v${version}"; 20 - hash = "sha256-PLUB0t9eDR0mYUI6TiUxafo6yMymwdTux7ykF8rTGGc="; 21 }; 22 23 - cargoHash = "sha256-PJclGjQTAOvnl8LJTxlDyEuzdWE1R7A2gJe1I1sKde0="; 24 25 - nativeBuildInputs = [ cargo-about ]; 26 27 - # Remove RiscV64 specialisation when this is fixed: 28 - # * https://github.com/NixOS/nixpkgs/pull/310158#pullrequestreview-2046944158 29 - # * https://github.com/rust-vmm/seccompiler/pull/72 30 - cargoBuildFlags = lib.optional stdenv.hostPlatform.isRiscV64 "--no-default-features"; 31 32 preBuild = '' 33 sed -i '1ino-clearly-defined = true' about.toml # disable network requests 34 cargo about generate --config about.toml -o THIRD_PARTY_LICENSES.HTML about.hbs 35 ''; 36 37 - # Tests don't work for native non-x86 compilation 38 - # because upstream overrides the name of the linker executables, 39 - # see https://github.com/NixOS/nixpkgs/pull/310158#issuecomment-2118845043 40 - doCheck = stdenv.hostPlatform.isx86_64; 41 - 42 checkFlags = [ 43 "--skip=cli::test::log_mode_without_args_works" # `Permission denied` (needs `CAP_SYS_PTRACE`) 44 - "--skip=tracer::test::tracer_emits_exec_event" # needs `/bin/true` 45 ]; 46 47 postInstall = ''
··· 5 rustPlatform, 6 cargo-about, 7 nix-update-script, 8 + pkg-config, 9 + libbpf, 10 + elfutils, 11 + libseccomp, 12 + zlib, 13 + clang, 14 }: 15 let 16 pname = "tracexec"; 17 + version = "0.8.0"; 18 in 19 rustPlatform.buildRustPackage { 20 inherit pname version; ··· 23 owner = "kxxt"; 24 repo = "tracexec"; 25 rev = "refs/tags/v${version}"; 26 + hash = "sha256-ZoYqmjqY9eAHGDIbFX9FY1yGF210C60UWcHi0lxzL7g="; 27 }; 28 29 + cargoHash = "sha256-mZSj45im5b25mt8mGYLq03blvFCyS02kVK7yV3bIlUg="; 30 + 31 + hardeningDisable = [ "zerocallusedregs" ]; 32 33 + nativeBuildInputs = [ 34 + cargo-about 35 + pkg-config 36 + clang 37 + ]; 38 + buildInputs = [ 39 + libbpf 40 + elfutils 41 + libseccomp 42 + zlib 43 + ]; 44 45 + cargoBuildFlags = 46 + [ 47 + "--no-default-features" 48 + "--features=recommended" 49 + ] 50 + # Remove RiscV64 specialisation when this is fixed: 51 + # * https://github.com/NixOS/nixpkgs/pull/310158#pullrequestreview-2046944158 52 + # * https://github.com/rust-vmm/seccompiler/pull/72 53 + ++ lib.optional stdenv.hostPlatform.isRiscV64 "--no-default-features"; 54 55 preBuild = '' 56 sed -i '1ino-clearly-defined = true' about.toml # disable network requests 57 cargo about generate --config about.toml -o THIRD_PARTY_LICENSES.HTML about.hbs 58 ''; 59 60 checkFlags = [ 61 "--skip=cli::test::log_mode_without_args_works" # `Permission denied` (needs `CAP_SYS_PTRACE`) 62 ]; 63 64 postInstall = ''