summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2020-10-24 10:23:57 +0200
committerJan Tojnar <jtojnar@gmail.com>2020-11-26 14:06:07 +0100
commitacfc45baccda8f16278793b9cdd8e6617f85960a (patch)
tree065d2db6fc1469479f51efca7be865e56341d33f /pkgs/build-support/setup-hooks
parent28ee64cd0de260e2409ef75653cbcd88b595ec4e (diff)
downloadnixpkgs-acfc45baccda8f16278793b9cdd8e6617f85960a.tar
nixpkgs-acfc45baccda8f16278793b9cdd8e6617f85960a.tar.gz
nixpkgs-acfc45baccda8f16278793b9cdd8e6617f85960a.tar.bz2
nixpkgs-acfc45baccda8f16278793b9cdd8e6617f85960a.tar.lz
nixpkgs-acfc45baccda8f16278793b9cdd8e6617f85960a.tar.xz
nixpkgs-acfc45baccda8f16278793b9cdd8e6617f85960a.tar.zst
nixpkgs-acfc45baccda8f16278793b9cdd8e6617f85960a.zip
wrapGAppsNoGuiHook: init
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r--pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix b/pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix
index 5a87893d972..d0ea088bf71 100644
--- a/pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix
+++ b/pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix
@@ -3,6 +3,7 @@
 , makeSetupHook
 , makeWrapper
 , gobject-introspection
+, isGraphical ? true
 , gtk3
 , librsvg
 , dconf
@@ -21,7 +22,7 @@ makeSetupHook {
     # Unfortunately, it also requires the user to have dconf
     # D-Bus service enabled globally (e.g. through a NixOS module).
     dconf.lib
-  ] ++ [
+  ] ++ lib.optionals isGraphical [
     # TODO: remove this, packages should depend on GTK explicitly.
     gtk3
 
@@ -30,6 +31,7 @@ makeSetupHook {
     # graphics in GTK (e.g. cross for closing window in window title bar)
     # so it is pretty much required for applications using GTK.
     librsvg
+  ] ++ [
 
     # We use the wrapProgram function.
     makeWrapper