From b4ff3a5fd1568a47781a40b4c56f3e46b5f93600 Mon Sep 17 00:00:00 2001 From: Samuel Dionne-Riel Date: Wed, 30 Sep 2020 01:10:30 -0400 Subject: [PATCH] asus-x018d: Pass postPatch and nativeBuildInputs as argument rather than override --- devices/asus-x018d/kernel/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/devices/asus-x018d/kernel/default.nix b/devices/asus-x018d/kernel/default.nix index f4387ee4..afbd1bd2 100644 --- a/devices/asus-x018d/kernel/default.nix +++ b/devices/asus-x018d/kernel/default.nix @@ -38,15 +38,16 @@ in isModular = false; -}).overrideAttrs({ postInstall ? "", postPatch ? "", nativeBuildInputs ? [], ... }: { - nativeBuildInputs = nativeBuildInputs ++ [ - python2 - ]; - installTargets = [ "zinstall" "Image.gz-dtb" "install" ]; - postPatch = postPatch + '' + postPatch = '' patchShebangs tools ''; + nativeBuildInputs = [ + python2 + ]; +}).overrideAttrs({ postInstall ? "", ... }: { + installTargets = [ "zinstall" "Image.gz-dtb" "install" ]; + postInstall = postInstall + '' cp -v "$buildRoot/arch/arm64/boot/Image.gz-dtb" "$out/" '';