sysvol: fix cross compilation

This commit is contained in:
Colin 2024-03-08 12:25:12 +00:00
parent df98ef30e0
commit ebb037bd48

View File

@ -15,6 +15,15 @@ stdenv.mkDerivation (finalAttrs: {
rev = "b8a15ca2e52922bceab3f48c5630149674da57e9";
hash = "sha256-BaefSRnn6ww3Ut+3ouXKoI/8/vmcPh/QV6dEETr3tog=";
};
postPatch = let
# i don't know how else to escape this
var = v: lib.concatStrings [ "$" "{" v "}" ];
in ''
substituteInPlace Makefile \
--replace-fail 'pkg-config' '${var "PKG_CONFIG"}' \
--replace-fail 'g++' '${var "CXX"}' \
--replace-fail 'strip sysvol' ""
'';
nativeBuildInputs = [
pkg-config