Merge pull request #161825 from Luflosi/lsiutil-patch-phase

lsiutil: substituteInPlace in the patch phase instead of buildPhase
This commit is contained in:
Artturi
2022-03-01 06:37:11 +02:00
committed by GitHub
+6 -3
View File
@@ -14,12 +14,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-aTi+EogY1aDWYq3anjRkjz1mzINVfUPQbOPHthxrvS4=";
};
buildPhase = ''
runHook preBuild
postPatch = ''
substituteInPlace lsiutil.c \
--replace /sbin/modprobe "${kmod}/bin/modprobe" \
--replace /bin/mknod "${coreutils}/bin/mknod"
'';
buildPhase = ''
runHook preBuild
gcc -Wall -O lsiutil.c -o lsiutil
runHook postBuild