Fix acpi_call kernel version reference

svn path=/nixpkgs/trunk/; revision=24677
This commit is contained in:
Michael Raskin 2010-11-12 06:12:04 +00:00
parent 8876963325
commit edf71ab9b2

View File

@ -9,9 +9,10 @@ stdenv.mkDerivation {
name = "acpi-call";
preBuild = ''
kernelVersion=$(cd ${kernel}/lib/modules && ls)
sed -e 's/break/true/' -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 = ''