1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 09:31:01 +00:00
nixpkgs/pkgs/os-specific/linux/nvidiabl/default.nix
Joachim Fasting c5785dc3eb
nvidiabl: mark as broken on kernels >4.4
All builds on kernels >4.4 fail.
2017-03-02 16:11:42 +01:00

36 lines
926 B
Nix

{ stdenv, fetchFromGitHub, kernel }:
stdenv.mkDerivation rec {
name = "nvidiabl-${version}-${kernel.version}";
version = "0.87";
src = fetchFromGitHub {
owner = "guillaumezin";
repo = "nvidiabl";
rev = "v${version}";
sha256 = "1hs61dxn84vsyvrd2s899dhgg342mhfkbdn1nkhcvly45hdp2nca";
};
hardeningDisable = [ "pic" ];
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;
platforms = stdenv.lib.platforms.linux;
broken = !stdenv.lib.versionOlder kernel.version "4.9";
};
}