Now properly add nvidiabl.

This commit is contained in:
Rob Vermaas 2014-03-07 16:08:38 +01:00
parent 8de3d9976c
commit 7047235acb
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,25 @@
{ stdenv, fetchurl, kernel }:
stdenv.mkDerivation {
name = "nvidiabl-0.85-${kernel.version}";
src = fetchurl {
url = "https://github.com/guillaumezin/nvidiabl/archive/v0.85.tar.gz";
sha256 = "1c7ar39wc8jpqh67sw03lwnyp0m9l6dad469ybqrgcywdiwxspwj";
};
preConfigure = ''
sed -i 's|/sbin/depmod|#/sbin/depmod|' Makefile
'';
makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"DESTDIR=$(out)"
];
meta = {
description = "Linux driver for setting the backlight brightness on laptops using NVIDIA GPU";
homepage = https://github.com/guillaumezin/nvidiabl;
license = stdenv.lib.licenses.gpl2;
};
}

View File

@ -6880,6 +6880,8 @@ let
broadcom_sta = callPackage ../os-specific/linux/broadcom-sta/default.nix { };
nvidiabl = callPackage ../os-specific/linux/nvidiabl { };
nvidia_x11 = callPackage ../os-specific/linux/nvidia-x11 { };
nvidia_x11_legacy173 = callPackage ../os-specific/linux/nvidia-x11/legacy173.nix { };