mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
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";
|
||||
|
||||
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 New Issue
Block a user