passt: support cross compilation (#334097)
This commit is contained in:
commit
8ee63a651d
@ -1,6 +1,8 @@
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPackages
|
||||
, fetchurl
|
||||
, getconf
|
||||
, gitUpdater
|
||||
, testers
|
||||
}:
|
||||
@ -14,6 +16,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-Qf1neJOkYXR5p9Owk60qtc22A+au4EY45Qt9PfJ+Lrs=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace Makefile --replace-fail \
|
||||
'PAGE_SIZE=$(shell getconf PAGE_SIZE)' \
|
||||
"PAGE_SIZE=$(${stdenv.hostPlatform.emulator buildPackages} ${lib.getExe getconf} PAGE_SIZE)"
|
||||
'';
|
||||
|
||||
makeFlags = [
|
||||
"prefix=${placeholder "out"}"
|
||||
"VERSION=${finalAttrs.version}"
|
||||
|
Loading…
Reference in New Issue
Block a user