1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-16 11:43:21 +03:00

asus-x018d: Pass postPatch and nativeBuildInputs as argument rather than override

This commit is contained in:
Samuel Dionne-Riel 2020-09-30 01:10:30 -04:00
parent 0edef3a2c4
commit b4ff3a5fd1

View File

@ -38,15 +38,16 @@ in
isModular = false; isModular = false;
}).overrideAttrs({ postInstall ? "", postPatch ? "", nativeBuildInputs ? [], ... }: { postPatch = ''
nativeBuildInputs = nativeBuildInputs ++ [
python2
];
installTargets = [ "zinstall" "Image.gz-dtb" "install" ];
postPatch = postPatch + ''
patchShebangs tools patchShebangs tools
''; '';
nativeBuildInputs = [
python2
];
}).overrideAttrs({ postInstall ? "", ... }: {
installTargets = [ "zinstall" "Image.gz-dtb" "install" ];
postInstall = postInstall + '' postInstall = postInstall + ''
cp -v "$buildRoot/arch/arm64/boot/Image.gz-dtb" "$out/" cp -v "$buildRoot/arch/arm64/boot/Image.gz-dtb" "$out/"
''; '';