Files
nixpkgs/pkgs/by-name/pe/pe-parse/package.nix
Xiangyan Sun 000f8fd419 pe-parse: 2.1.1 -> 2.1.1-unstable-2026-01-08
Co-authored-by: Michael Daniels <mdaniels5757@gmail.com>
2026-05-17 15:24:47 -04:00

39 lines
1011 B
Nix

{
lib,
stdenv,
fetchFromGitHub,
cmake,
icu,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pe-parse";
version = "2.1.1-unstable-2026-01-12";
src = fetchFromGitHub {
owner = "trailofbits";
repo = "pe-parse";
rev = "b0dabd3fdcccd8f53bab500a45e92f37c6fec936";
hash = "sha256-j1QJ12hEy1c7SRIJSiFwQwJhhDKGbUrquFXDZbNNEDk=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ icu ];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/dump-pe ../tests/assets/example.exe
'';
meta = {
description = "Principled, lightweight parser for Windows portable executable files";
homepage = "https://github.com/trailofbits/pe-parse";
${if lib.hasInfix "unstable" finalAttrs.version then null else "changelog"} =
"https://github.com/trailofbits/pe-parse/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ arturcygan ];
mainProgram = "dump-pe";
platforms = lib.platforms.unix;
};
})