pipr: fix gcc15 build (#486755)

This commit is contained in:
Michael Daniels
2026-02-22 03:04:58 +00:00
committed by GitHub
+11 -1
View File
@@ -3,6 +3,8 @@
fetchFromGitHub,
rustPlatform,
bubblewrap,
oniguruma,
pkg-config,
makeWrapper,
}:
@@ -19,7 +21,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-SRIv/dZcyKm2E7c5/LtMCDnh+SDqPhJ01GZtkj0RgA0=";
nativeBuildInputs = [ makeWrapper ];
nativeBuildInputs = [
pkg-config
makeWrapper
];
buildInputs = [ oniguruma ];
# use system oniguruma since the bundled one fails to build with gcc15
env.RUSTONIG_SYSTEM_LIBONIG = 1;
postFixup = ''
wrapProgram "$out/bin/pipr" --prefix PATH : ${lib.makeBinPath [ bubblewrap ]}
'';