builder: use postPatch not patchPhase for better overridability

This commit is contained in:
Astro 2022-06-10 21:52:42 +02:00
parent fa5444dec4
commit 540f9c62a8
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ stdenv.mkDerivation {
src = variantFiles."openwrt-imagebuilder-${release}-${target}-${variant}.${hostPlatform.uname.system}-${hostPlatform.uname.processor}.tar.xz";
patchPhase = ''
postPatch = ''
patchShebangs scripts staging_dir/host/bin
substituteInPlace rules.mk \
--replace "SHELL:=/usr/bin/env bash" "SHELL:=${runtimeShell}"