diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-02-20 12:32:31 -0800 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2022-02-26 15:48:02 -0800 |
commit | 43f8a58df85d22c80016c6243115baf90f44ff1c (patch) | |
tree | c1be43e9154f04ca928459e5795f5ddd63314a49 /pkgs/development/libraries/webkitgtk | |
parent | 6f21ff94fc44af21973c6fdae6e03323382b7909 (diff) | |
download | nixpkgs-43f8a58df85d22c80016c6243115baf90f44ff1c.tar nixpkgs-43f8a58df85d22c80016c6243115baf90f44ff1c.tar.gz nixpkgs-43f8a58df85d22c80016c6243115baf90f44ff1c.tar.bz2 nixpkgs-43f8a58df85d22c80016c6243115baf90f44ff1c.tar.lz nixpkgs-43f8a58df85d22c80016c6243115baf90f44ff1c.tar.xz nixpkgs-43f8a58df85d22c80016c6243115baf90f44ff1c.tar.zst nixpkgs-43f8a58df85d22c80016c6243115baf90f44ff1c.zip |
webkitgtk: honor systemdSupport
This commit exposes support for compilation without systemd, controlled by the global systemdSupport argument. This argument is understood by many other nixpkgs expressions and can be set globally in ~/.config/nixpkgs/config.nix.
Diffstat (limited to 'pkgs/development/libraries/webkitgtk')
-rw-r--r-- | pkgs/development/libraries/webkitgtk/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/webkitgtk/default.nix b/pkgs/development/libraries/webkitgtk/default.nix index 92405b35de2..afa8c63490a 100644 --- a/pkgs/development/libraries/webkitgtk/default.nix +++ b/pkgs/development/libraries/webkitgtk/default.nix @@ -60,6 +60,7 @@ , addOpenGLRunpath , enableGeoLocation ? true , withLibsecret ? true +, systemdSupport ? stdenv.isLinux }: stdenv.mkDerivation rec { @@ -158,9 +159,10 @@ stdenv.mkDerivation rec { bubblewrap libseccomp libmanette - systemd wayland xdg-dbus-proxy + ] ++ lib.optionals systemdSupport [ + systemd ] ++ lib.optionals enableGeoLocation [ geoclue2 ] ++ lib.optionals withLibsecret [ @@ -193,7 +195,7 @@ stdenv.mkDerivation rec { "-DUSE_APPLE_ICU=OFF" "-DUSE_OPENGL_OR_ES=OFF" "-DUSE_SYSTEM_MALLOC=ON" - ] ++ lib.optionals (!stdenv.isLinux) [ + ] ++ lib.optionals (!systemdSupport) [ "-DUSE_SYSTEMD=OFF" ] ++ lib.optionals (stdenv.isLinux && enableGLES) [ "-DENABLE_GLES2=ON" |