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.
This commit is contained in:
parent
6f21ff94fc
commit
43f8a58df8
1 changed files with 4 additions and 2 deletions
|
@ -60,6 +60,7 @@
|
||||||
, addOpenGLRunpath
|
, addOpenGLRunpath
|
||||||
, enableGeoLocation ? true
|
, enableGeoLocation ? true
|
||||||
, withLibsecret ? true
|
, withLibsecret ? true
|
||||||
|
, systemdSupport ? stdenv.isLinux
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
|
@ -158,9 +159,10 @@ stdenv.mkDerivation rec {
|
||||||
bubblewrap
|
bubblewrap
|
||||||
libseccomp
|
libseccomp
|
||||||
libmanette
|
libmanette
|
||||||
systemd
|
|
||||||
wayland
|
wayland
|
||||||
xdg-dbus-proxy
|
xdg-dbus-proxy
|
||||||
|
] ++ lib.optionals systemdSupport [
|
||||||
|
systemd
|
||||||
] ++ lib.optionals enableGeoLocation [
|
] ++ lib.optionals enableGeoLocation [
|
||||||
geoclue2
|
geoclue2
|
||||||
] ++ lib.optionals withLibsecret [
|
] ++ lib.optionals withLibsecret [
|
||||||
|
@ -193,7 +195,7 @@ stdenv.mkDerivation rec {
|
||||||
"-DUSE_APPLE_ICU=OFF"
|
"-DUSE_APPLE_ICU=OFF"
|
||||||
"-DUSE_OPENGL_OR_ES=OFF"
|
"-DUSE_OPENGL_OR_ES=OFF"
|
||||||
"-DUSE_SYSTEM_MALLOC=ON"
|
"-DUSE_SYSTEM_MALLOC=ON"
|
||||||
] ++ lib.optionals (!stdenv.isLinux) [
|
] ++ lib.optionals (!systemdSupport) [
|
||||||
"-DUSE_SYSTEMD=OFF"
|
"-DUSE_SYSTEMD=OFF"
|
||||||
] ++ lib.optionals (stdenv.isLinux && enableGLES) [
|
] ++ lib.optionals (stdenv.isLinux && enableGLES) [
|
||||||
"-DENABLE_GLES2=ON"
|
"-DENABLE_GLES2=ON"
|
||||||
|
|
Loading…
Reference in a new issue