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