1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/os-specific/linux/nvidiabl/default.nix
Yorick van Pelt a2dc00c177 nvidiabl: fix for other kernel versions than current
It was using the version of currently *running* kernel (impurely).
Close #6869.
2015-03-18 10:48:45 +01:00

27 lines
705 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";
};
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;
};
}