forked from colin/nix-files
sysvol: fix cross compilation
This commit is contained in:
parent
df98ef30e0
commit
ebb037bd48
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user