nixpkgs/pkgs/os-specific/linux/nvidiabl/default.nix
William A. Kennington III 6602f49495 Revert "Revert "Merge pull request #9543 from NixOS/staging.post-15.06""
This reverts commit 741bf840da.

This reverts the fallout from reverting the major changes.
2015-11-14 12:32:51 -08:00

29 lines
744 B
Nix

{ 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";
};
patches = [ ./linux4compat.patch ];
preConfigure = ''
sed -i 's|/sbin/depmod|#/sbin/depmod|' Makefile
'';
makeFlags = [
"KDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
"DESTDIR=$(out)"
"KVER=${kernel.modDirVersion}"
];
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;
};
}