mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 01:54:34 +00:00
Merge pull request #237326 from amjoseph-nixpkgs/pr/gcr/systemd-availableOn
gcr: use lib.meta.availableOn instead of isLinux
This commit is contained in:
commit
04378fc6b1
@ -14,7 +14,7 @@
|
||||
, pango
|
||||
, libsecret
|
||||
, openssh
|
||||
, systemd
|
||||
, systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd
|
||||
, gobject-introspection
|
||||
, wrapGAppsHook
|
||||
, gi-docgen
|
||||
@ -56,7 +56,7 @@ stdenv.mkDerivation rec {
|
||||
pango
|
||||
libsecret
|
||||
openssh
|
||||
] ++ lib.optionals stdenv.isLinux [
|
||||
] ++ lib.optionals (systemdSupport) [
|
||||
systemd
|
||||
];
|
||||
|
||||
@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
|
||||
# We are still using ssh-agent from gnome-keyring.
|
||||
# https://github.com/NixOS/nixpkgs/issues/140824
|
||||
"-Dssh_agent=false"
|
||||
] ++ lib.optionals (!stdenv.isLinux) [
|
||||
] ++ lib.optionals (!systemdSupport) [
|
||||
"-Dsystemd=disabled"
|
||||
];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user