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

asus-z00t: Pass postPatch as argument rather than override

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

View File

@ -43,11 +43,11 @@
isModular = false;
}).overrideAttrs({ postInstall ? "", postPatch ? "", ... }: {
installTargets = [ "zinstall" ];
postPatch = postPatch + ''
postPatch = ''
cp -v "${./compiler-gcc6.h}" "./include/linux/compiler-gcc6.h"
'';
}).overrideAttrs({ postInstall ? "", ... }: {
installTargets = [ "zinstall" ];
postInstall = postInstall + ''
${dtbTool}/bin/dtbTool -s 2048 -p "scripts/dtc/" -o "arch/arm64/boot/asus-z00t.img" "arch/arm/boot/"
cp "arch/arm64/boot/asus-z00t.img" "$out/dtbs/asus-z00t.img"