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

google-marlin: Pass postPatch as argument rather than override

This commit is contained in:
Samuel Dionne-Riel 2020-09-30 01:08:02 -04:00
parent 4443108073
commit 72fad2346a

View File

@ -30,9 +30,8 @@ in
];
isModular = false;
}).overrideAttrs({ postInstall ? "", postPatch ? "", nativeBuildInputs, ... }: {
installTargets = [ "zinstall" "Image.gz-dtb" "install" ];
postPatch = postPatch + ''
postPatch = ''
# FIXME : factor out
(
# Remove -Werror from all makefiles
@ -49,6 +48,9 @@ in
# Remove google's default dm-verity certs
rm -f *.x509
'';
}).overrideAttrs({ postInstall ? "", nativeBuildInputs, ... }: {
installTargets = [ "zinstall" "Image.gz-dtb" "install" ];
nativeBuildInputs = nativeBuildInputs ++ [ dtc ];
postInstall = postInstall + ''