linuxPackages.acpi_call: fix build with 4.14+ kernels

This commit is contained in:
Franz Pletz 2018-01-01 22:03:53 +01:00
parent 3d692437c4
commit 0ea0e3cf71
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -18,6 +18,8 @@ stdenv.mkDerivation {
hardeningDisable = [ "pic" ];
nativeBuildInputs = kernel.moduleBuildDependencies;
preBuild = ''
sed -e 's/break/true/' -i examples/turn_off_gpu.sh
sed -e 's@/bin/bash@.bin/sh@' -i examples/turn_off_gpu.sh