Fix acpi_call kernel version reference
svn path=/nixpkgs/trunk/; revision=24677
This commit is contained in:
parent
8876963325
commit
edf71ab9b2
1 changed files with 2 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue