lol

gcr: use lib.meta.availableOn instead of isLinux

This commit uses `lib.meta.availableOn hostPlatform systemd`
(instead of `hostPlatform.isLinux`) to decide whether or not to
depend on systemd.

+3 -3
+3 -3
pkgs/development/libraries/gcr/default.nix
··· 14 14 , pango 15 15 , libsecret 16 16 , openssh 17 - , systemd 17 + , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd 18 18 , gobject-introspection 19 19 , wrapGAppsHook 20 20 , gi-docgen ··· 56 56 pango 57 57 libsecret 58 58 openssh 59 - ] ++ lib.optionals stdenv.isLinux [ 59 + ] ++ lib.optionals (systemdSupport) [ 60 60 systemd 61 61 ]; 62 62 ··· 74 74 # We are still using ssh-agent from gnome-keyring. 75 75 # https://github.com/NixOS/nixpkgs/issues/140824 76 76 "-Dssh_agent=false" 77 - ] ++ lib.optionals (!stdenv.isLinux) [ 77 + ] ++ lib.optionals (!systemdSupport) [ 78 78 "-Dsystemd=disabled" 79 79 ]; 80 80