Fix acpi_call kernel version reference
svn path=/nixpkgs/trunk/; revision=24677
This commit is contained in:
parent
8876963325
commit
edf71ab9b2
@ -9,9 +9,10 @@ stdenv.mkDerivation {
|
|||||||
name = "acpi-call";
|
name = "acpi-call";
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
|
kernelVersion=$(cd ${kernel}/lib/modules && ls)
|
||||||
sed -e 's/break/true/' -i test_off.sh
|
sed -e 's/break/true/' -i test_off.sh
|
||||||
sed -e 's@/bin/bash@.bin/sh@' -i test_off.sh
|
sed -e 's@/bin/bash@.bin/sh@' -i test_off.sh
|
||||||
sed -e "s@/lib/modules@${kernel}/&@" -i Makefile
|
sed -e "s@/lib/modules/\$(.*)@${kernel}/lib/modules/$kernelVersion@" -i Makefile
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user