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

motorola-addison: Pass postPatch as argument rather than override

This commit is contained in:
Samuel Dionne-Riel 2020-09-30 01:07:46 -04:00
parent 32381fdc9c
commit 302ffc43ee

View File

@ -45,9 +45,7 @@ in
isModular = false;
}).overrideAttrs({ postInstall ? "", postPatch ? "", ... }: {
installTargets = [ "zinstall" "dtbs" ];
postPatch = postPatch + ''
postPatch = ''
cp -v "${./compiler-gcc6.h}" "./include/linux/compiler-gcc6.h"
# FIXME : factor out
@ -63,6 +61,8 @@ in
done
)
'';
}).overrideAttrs({ postInstall ? "", ... }: {
installTargets = [ "zinstall" "dtbs" ];
postInstall = postInstall + ''
mkdir -p "$out/dtbs/"
''