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 5 rustPlatform, 6 6 cargo-about, 7 7 nix-update-script, 8 + pkg-config, 9 + libbpf, 10 + elfutils, 11 + libseccomp, 12 + zlib, 13 + clang, 8 14 }: 9 15 let 10 16 pname = "tracexec"; 11 - version = "0.5.2"; 17 + version = "0.8.0"; 12 18 in 13 19 rustPlatform.buildRustPackage { 14 20 inherit pname version; ··· 17 23 owner = "kxxt"; 18 24 repo = "tracexec"; 19 25 rev = "refs/tags/v${version}"; 20 - hash = "sha256-PLUB0t9eDR0mYUI6TiUxafo6yMymwdTux7ykF8rTGGc="; 26 + hash = "sha256-ZoYqmjqY9eAHGDIbFX9FY1yGF210C60UWcHi0lxzL7g="; 21 27 }; 22 28 23 - cargoHash = "sha256-PJclGjQTAOvnl8LJTxlDyEuzdWE1R7A2gJe1I1sKde0="; 29 + cargoHash = "sha256-mZSj45im5b25mt8mGYLq03blvFCyS02kVK7yV3bIlUg="; 30 + 31 + hardeningDisable = [ "zerocallusedregs" ]; 24 32 25 - nativeBuildInputs = [ cargo-about ]; 33 + nativeBuildInputs = [ 34 + cargo-about 35 + pkg-config 36 + clang 37 + ]; 38 + buildInputs = [ 39 + libbpf 40 + elfutils 41 + libseccomp 42 + zlib 43 + ]; 26 44 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"; 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"; 31 54 32 55 preBuild = '' 33 56 sed -i '1ino-clearly-defined = true' about.toml # disable network requests 34 57 cargo about generate --config about.toml -o THIRD_PARTY_LICENSES.HTML about.hbs 35 58 ''; 36 59 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 60 checkFlags = [ 43 61 "--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 62 ]; 46 63 47 64 postInstall = ''