lsiutil: substituteInPlace in the patch phase instead of buildPhase

This commit is contained in:
Luflosi 2021-08-12 12:00:52 +02:00
parent 1cf957f89c
commit fa5bc848ed
No known key found for this signature in database
GPG key ID: 4E41E29EDCC345D0

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