Commit f438857c authored by Xyven's avatar Xyven Committed by xyven1
Browse files

pipr: fix gcc15 build

Add oniguruma as a build input for the Rust package as vendored version fails to compile.
parent 762951f6
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -3,6 +3,8 @@
  fetchFromGitHub,
  rustPlatform,
  bubblewrap,
  oniguruma,
  pkg-config,
  makeWrapper,
}:

@@ -19,7 +21,15 @@ rustPlatform.buildRustPackage rec {

  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 ]}
  '';