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

lsiutil: substituteInPlace in the patch phase instead of buildPhase
main
Artturi 2 years ago committed by GitHub
commit ef65212571
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      pkgs/os-specific/linux/lsiutil/default.nix

@ -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

Loading…
Cancel
Save