Skip to content

Commit

Permalink
nvidia-settings: Make sure binary can find libXv.so
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuuzetsu committed Dec 17, 2017
1 parent 8bcd948 commit 34b0c1c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions pkgs/os-specific/linux/nvidia-x11/settings.nix
Expand Up @@ -41,12 +41,9 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig m4 ];

buildInputs = [ jansson libXv libXrandr libvdpau nvidia_x11 gtk2 dbus ]
buildInputs = [ jansson libXv libXrandr libvdpau nvidia_x11 gtk2 dbus libXv ]
++ lib.optionals withGtk3 [ gtk3 librsvg wrapGAppsHook ];

# This next line makes the nvidia-settings binary fail to compile as of version 387.22
# NIX_LDFLAGS = [ "-lvdpau" "-lXrandr" "-lXv" "-lnvidia-ml" ];

makeFlags = [ "NV_USE_BUNDLED_LIBJANSSON=0" ];
installFlags = [ "PREFIX=$(out)" ];

Expand Down Expand Up @@ -74,7 +71,7 @@ stdenv.mkDerivation rec {
binaryName = if withGtk3 then ".nvidia-settings-wrapped" else "nvidia-settings";

postFixup = ''
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/$binaryName):$out/lib" \
patchelf --set-rpath "$(patchelf --print-rpath $out/bin/$binaryName):$out/lib:${libXv}/lib" \
$out/bin/$binaryName
'';

Expand Down

0 comments on commit 34b0c1c

Please sign in to comment.