xidlehook: Fix darwin build

... I think
This commit is contained in:
jD91mZM2 2018-11-18 08:27:39 +01:00
parent a2ae93adc9
commit e2d5470b17
No known key found for this signature in database
GPG Key ID: 3055D54729A72666
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ lib, stdenv, rustPlatform, fetchFromGitLab
, xlibsWrapper, xorg, libpulseaudio, pkgconfig, patchelf }:
, xlibsWrapper, xorg, libpulseaudio, pkgconfig, patchelf, Security }:
rustPlatform.buildRustPackage rec {
name = "xidlehook-${version}";
@ -18,7 +18,7 @@ rustPlatform.buildRustPackage rec {
cargoBuildFlags = lib.optionals (!stdenv.isLinux) ["--no-default-features" "--features" "pulse"];
cargoSha256 = "1pdhbqnkgwp2v5zyin8z8049aq8c3kfk04v9wsbz8qla34rgi99s";
buildInputs = [ xlibsWrapper xorg.libXScrnSaver libpulseaudio ];
buildInputs = [ xlibsWrapper xorg.libXScrnSaver libpulseaudio ] ++ lib.optional stdenv.isDarwin Security;
nativeBuildInputs = [ pkgconfig patchelf ];
postFixup = lib.optionalString stdenv.isLinux ''

View File

@ -6326,7 +6326,9 @@ with pkgs;
xiccd = callPackage ../tools/misc/xiccd { };
xidlehook = callPackage ../tools/X11/xidlehook {};
xidlehook = callPackage ../tools/X11/xidlehook {
inherit (darwin.apple_sdk.frameworks) Security;
};
xorriso = callPackage ../tools/cd-dvd/xorriso { };