diff options
author | Jan Tojnar <jtojnar@gmail.com> | 2020-10-24 10:23:57 +0200 |
---|---|---|
committer | Jan Tojnar <jtojnar@gmail.com> | 2020-11-26 14:06:07 +0100 |
commit | acfc45baccda8f16278793b9cdd8e6617f85960a (patch) | |
tree | 065d2db6fc1469479f51efca7be865e56341d33f /pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix | |
parent | 28ee64cd0de260e2409ef75653cbcd88b595ec4e (diff) |
wrapGAppsNoGuiHook: init
Diffstat (limited to 'pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix')
-rw-r--r-- | pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix | 4 |
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 5a87893d9726f..d0ea088bf71e8 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 |