xidlehook: use buildFeatures
This commit is contained in:
parent
5999944ad0
commit
fb3de84fb3
@ -25,12 +25,14 @@ rustPlatform.buildRustPackage rec {
|
||||
sha256 = "1pl7f8fhxfcy0c6c08vkagp0x1ak96vc5wgamigrk1nkd6l371lb";
|
||||
};
|
||||
|
||||
cargoBuildFlags = lib.optionals (!stdenv.isLinux) [ "--no-default-features" "--features" "pulse" ];
|
||||
cargoSha256 = "1y7m61j07gvqfqz97mda39nc602sv7a826c06m8l22i7z380xfms";
|
||||
|
||||
buildInputs = [ xlibsWrapper xorg.libXScrnSaver libpulseaudio ] ++ lib.optional stdenv.isDarwin Security;
|
||||
nativeBuildInputs = [ pkg-config patchelf python3 ];
|
||||
|
||||
buildNoDefaultFeatures = !stdenv.isLinux;
|
||||
buildFeatures = lib.optional (!stdenv.isLinux) "pulse";
|
||||
|
||||
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