xidlehook: Fix darwin build
... I think
This commit is contained in:
parent
a2ae93adc9
commit
e2d5470b17
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, rustPlatform, fetchFromGitLab
|
{ lib, stdenv, rustPlatform, fetchFromGitLab
|
||||||
, xlibsWrapper, xorg, libpulseaudio, pkgconfig, patchelf }:
|
, xlibsWrapper, xorg, libpulseaudio, pkgconfig, patchelf, Security }:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
name = "xidlehook-${version}";
|
name = "xidlehook-${version}";
|
||||||
@ -18,7 +18,7 @@ rustPlatform.buildRustPackage rec {
|
|||||||
cargoBuildFlags = lib.optionals (!stdenv.isLinux) ["--no-default-features" "--features" "pulse"];
|
cargoBuildFlags = lib.optionals (!stdenv.isLinux) ["--no-default-features" "--features" "pulse"];
|
||||||
cargoSha256 = "1pdhbqnkgwp2v5zyin8z8049aq8c3kfk04v9wsbz8qla34rgi99s";
|
cargoSha256 = "1pdhbqnkgwp2v5zyin8z8049aq8c3kfk04v9wsbz8qla34rgi99s";
|
||||||
|
|
||||||
buildInputs = [ xlibsWrapper xorg.libXScrnSaver libpulseaudio ];
|
buildInputs = [ xlibsWrapper xorg.libXScrnSaver libpulseaudio ] ++ lib.optional stdenv.isDarwin Security;
|
||||||
nativeBuildInputs = [ pkgconfig patchelf ];
|
nativeBuildInputs = [ pkgconfig patchelf ];
|
||||||
|
|
||||||
postFixup = lib.optionalString stdenv.isLinux ''
|
postFixup = lib.optionalString stdenv.isLinux ''
|
||||||
|
@ -6326,7 +6326,9 @@ with pkgs;
|
|||||||
|
|
||||||
xiccd = callPackage ../tools/misc/xiccd { };
|
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 { };
|
xorriso = callPackage ../tools/cd-dvd/xorriso { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user