2017-01-29 22:29:39 +01:00
|
|
|
nvidia_x11: sha256:
|
|
|
|
|
|
|
|
{ stdenv, lib, fetchurl, m4 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "nvidia-persistenced-${nvidia_x11.version}";
|
|
|
|
inherit (nvidia_x11) version;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-04-29 23:19:04 +02:00
|
|
|
url = "https://download.nvidia.com/XFree86/nvidia-persistenced/${name}.tar.bz2";
|
2017-01-29 22:29:39 +01:00
|
|
|
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; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.nvidia.com/object/unix.html;
|
2017-01-29 22:29:39 +01:00
|
|
|
description = "Settings application for NVIDIA graphics cards";
|
|
|
|
license = licenses.unfreeRedistributable;
|
2018-03-27 15:40:15 +02:00
|
|
|
platforms = nvidia_x11.meta.platforms;
|
2017-01-29 22:29:39 +01:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
|
|
|
};
|
|
|
|
}
|