mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 09:34:36 +00:00
xidlehook: only fixup on linux
This commit is contained in:
parent
7499e4a5b9
commit
0b04ed6177
@ -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
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user