Skip to content
Browse files

bbswitch: Use kernel.dev instead of kernelDev

Signed-off-by: Shea Levy <shea@shealevy.com>
  • Loading branch information...
1 parent 1d11a4b commit 45d3898f2098fa71bc100b7ef3729974f3ea7f0c @shlevy committed Mar 25, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 pkgs/os-specific/linux/bbswitch/default.nix
View
12 pkgs/os-specific/linux/bbswitch/default.nix
@@ -1,9 +1,9 @@
-{ stdenv, fetchurl, kernelDev }:
+{ stdenv, fetchurl, kernel }:
let
baseName = "bbswitch";
version = "0.6";
- name = "${baseName}-${version}-${kernelDev.version}";
+ name = "${baseName}-${version}-${kernel.version}";
in
@@ -17,13 +17,13 @@ stdenv.mkDerivation {
preBuild = ''
substituteInPlace Makefile \
- --replace "\$(shell uname -r)" "${kernelDev.modDirVersion}" \
- --replace "/lib/modules" "${kernelDev}/lib/modules"
+ --replace "\$(shell uname -r)" "${kernel.modDirVersion}" \
+ --replace "/lib/modules" "${kernel.dev}/lib/modules"
'';
installPhase = ''
- ensureDir $out/lib/modules/${kernelDev.modDirVersion}/misc
- cp bbswitch.ko $out/lib/modules/${kernelDev.modDirVersion}/misc
+ ensureDir $out/lib/modules/${kernel.modDirVersion}/misc
+ cp bbswitch.ko $out/lib/modules/${kernel.modDirVersion}/misc
ensureDir $out/bin
tee $out/bin/discrete_vga_poweroff << EOF

0 comments on commit 45d3898

Please sign in to comment.
Something went wrong with that request. Please try again.