mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
2fd2fcf54d
* Use libglvnd; * Compile nvidia-settings, nvidia-persistenced from source; * Generalize builder.
31 lines
814 B
Nix
31 lines
814 B
Nix
nvidia_x11: sha256:
|
|
|
|
{ stdenv, lib, fetchurl, m4 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "nvidia-persistenced-${nvidia_x11.version}";
|
|
inherit (nvidia_x11) version;
|
|
|
|
src = fetchurl {
|
|
url = "ftp://download.nvidia.com/XFree86/nvidia-persistenced/${name}.tar.bz2";
|
|
inherit sha256;
|
|
};
|
|
|
|
nativeBuildInputs = [ m4 ];
|
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
postFixup = ''
|
|
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/nvidia-persistenced):${nvidia_x11}/lib" \
|
|
$out/bin/nvidia-persistenced
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "http://www.nvidia.com/object/unix.html";
|
|
description = "Settings application for NVIDIA graphics cards";
|
|
license = licenses.unfreeRedistributable;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ abbradar ];
|
|
};
|
|
}
|