about summary refs log tree commit diff
path: root/pkgs/development/libraries/vte
diff options
context:
space:
mode:
authorAdam Joseph <54836058+a-m-joseph@users.noreply.github.com>2022-03-13 20:46:57 +0000
committerGitHub <noreply@github.com>2022-03-13 21:46:57 +0100
commitad826d3b93b9f2d069beeb3c259d192146309ec3 (patch)
tree8b7579a11b140351406f61637ff71bbb6a0cb6ce /pkgs/development/libraries/vte
parent9d13bf5b1caedcee62cd7bb7fa71a61f0ba87403 (diff)
vte: respect the global systemdSupport flag
This commit allows to compile vte without systemd (-D_systemd=false)
if the systemdSupport attribute is set to false.  This can be done
globally in nixpkgs.conf, and is understood by other packages.  See
also PR #160972.
Diffstat (limited to 'pkgs/development/libraries/vte')
-rw-r--r--pkgs/development/libraries/vte/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/vte/default.nix b/pkgs/development/libraries/vte/default.nix
index 0411086c78c33..eae934a4ebb1d 100644
--- a/pkgs/development/libraries/vte/default.nix
+++ b/pkgs/development/libraries/vte/default.nix
@@ -21,6 +21,7 @@
 , zlib
 , icu
 , systemd
+, systemdSupport ? stdenv.hostPlatform.isLinux
 }:
 
 stdenv.mkDerivation rec {
@@ -63,6 +64,7 @@ stdenv.mkDerivation rec {
     pcre2
     zlib
     icu
+  ] ++ lib.optionals systemdSupport [
     systemd
   ];
 
@@ -73,6 +75,10 @@ stdenv.mkDerivation rec {
     pango
   ];
 
+  mesonFlags = lib.optionals (!systemdSupport) [
+    "-D_systemd=false"
+  ];
+
   postPatch = ''
     patchShebangs perf/*
     patchShebangs src/box_drawing_generate.sh