lsiutil: substituteInPlace in the patch phase instead of buildPhase
This commit is contained in:
parent
1cf957f89c
commit
fa5bc848ed
|
@ -14,12 +14,15 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "sha256-aTi+EogY1aDWYq3anjRkjz1mzINVfUPQbOPHthxrvS4=";
|
sha256 = "sha256-aTi+EogY1aDWYq3anjRkjz1mzINVfUPQbOPHthxrvS4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
postPatch = ''
|
||||||
runHook preBuild
|
|
||||||
|
|
||||||
substituteInPlace lsiutil.c \
|
substituteInPlace lsiutil.c \
|
||||||
--replace /sbin/modprobe "${kmod}/bin/modprobe" \
|
--replace /sbin/modprobe "${kmod}/bin/modprobe" \
|
||||||
--replace /bin/mknod "${coreutils}/bin/mknod"
|
--replace /bin/mknod "${coreutils}/bin/mknod"
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
gcc -Wall -O lsiutil.c -o lsiutil
|
gcc -Wall -O lsiutil.c -o lsiutil
|
||||||
|
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
|
|
Loading…
Reference in a new issue