Permalink
Browse files

acpi-call: Use kernel.dev instead of kernelDev

Signed-off-by: Shea Levy <shea@shealevy.com>
  • Loading branch information...
1 parent 94c3363 commit 1d11a4b6d3e92c361a4ccf43a06f2b6c87360d11 @shlevy committed Mar 25, 2013
Showing with 5 additions and 5 deletions.
  1. +5 −5 pkgs/os-specific/linux/acpi-call/default.nix
@@ -1,7 +1,7 @@
-{ stdenv, fetchgit, kernelDev }:
+{ stdenv, fetchgit, kernel }:
stdenv.mkDerivation {
- name = "acpi-call-${kernelDev.version}";
+ name = "acpi-call-${kernel.version}";
src = fetchgit {
url = "git://github.com/mkottman/acpi_call.git";
@@ -12,12 +12,12 @@ stdenv.mkDerivation {
preBuild = ''
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/\$(.*)@${kernelDev}/lib/modules/${kernelDev.modDirVersion}@" -i Makefile
+ sed -e "s@/lib/modules/\$(.*)@${kernel.dev}/lib/modules/${kernel.modDirVersion}@" -i Makefile
'';
installPhase = ''
- mkdir -p $out/lib/modules/${kernelDev.modDirVersion}/misc
- cp acpi_call.ko $out/lib/modules/${kernelDev.modDirVersion}/misc
+ mkdir -p $out/lib/modules/${kernel.modDirVersion}/misc
+ cp acpi_call.ko $out/lib/modules/${kernel.modDirVersion}/misc
mkdir -p $out/bin
cp test_off.sh $out/bin/test_discrete_video_off.sh
chmod a+x $out/bin/test_discrete_video_off.sh

0 comments on commit 1d11a4b

Please sign in to comment.