xidlehook: only fixup on linux

This commit is contained in:
Matthew Justin Bauer 2018-05-07 12:53:03 -05:00 committed by GitHub
parent 7499e4a5b9
commit 0b04ed6177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ x11 xorg.libXScrnSaver libpulseaudio ];
nativeBuildInputs = [ pkgconfig patchelf ];
postFixup = ''
postFixup = lib.optionalString stdenv.isLinux ''
RPATH="$(patchelf --print-rpath $out/bin/xidlehook)"
patchelf --set-rpath "$RPATH:${libpulseaudio}/lib" $out/bin/xidlehook
'';