mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
Merge pull request #290860 from chewblacka/fix2-xdg-utils
xdg-utils: add xdg-terminal
This commit is contained in:
commit
628282de10
|
@ -1,8 +1,8 @@
|
|||
{ lib, stdenv, fetchFromGitLab, fetchFromGitHub, fetchpatch, writeText
|
||||
{ lib, stdenv, fetchFromGitLab, fetchFromGitHub, writeText
|
||||
# docs deps
|
||||
, libxslt, docbook_xml_dtd_412, docbook_xml_dtd_43, docbook_xsl, xmlto
|
||||
# runtime deps
|
||||
, resholve, bash, coreutils, dbus, file, gawk, glib, gnugrep, gnused, jq, nettools, procmail, procps, xdg-user-dirs
|
||||
, resholve, bash, coreutils, dbus, file, gawk, glib, gnugrep, gnused, jq, nettools, procmail, procps, which, xdg-user-dirs
|
||||
, perl, perlPackages
|
||||
, mimiSupport ? false
|
||||
, withXdgOpenUsePortalPatch ? true }:
|
||||
|
@ -212,6 +212,25 @@ let
|
|||
"$handler" = true;
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
scripts = [ "bin/xdg-terminal" ];
|
||||
interpreter = "${bash}/bin/bash";
|
||||
inputs = commonDeps ++ [ bash glib.bin which ];
|
||||
fake.external = commonFakes ++ [
|
||||
"gconftool-2" # GNOME
|
||||
"exo-open" # XFCE
|
||||
"lxterminal" # LXQT
|
||||
"qterminal" # LXQT
|
||||
"terminology" # Englightenment
|
||||
];
|
||||
keep = {
|
||||
"$command" = true;
|
||||
"$kreadconfig" = true;
|
||||
"$terminal_exec" = true;
|
||||
};
|
||||
prologue = commonPrologue;
|
||||
}
|
||||
];
|
||||
in
|
||||
|
||||
|
@ -231,6 +250,8 @@ stdenv.mkDerivation rec {
|
|||
# Allow forcing the use of XDG portals using NIXOS_XDG_OPEN_USE_PORTAL environment variable.
|
||||
# Upstream PR: https://github.com/freedesktop/xdg-utils/pull/12
|
||||
./allow-forcing-portal-use.patch
|
||||
# Enable build of xdg-terminal
|
||||
./enable-xdg-terminal.patch
|
||||
];
|
||||
|
||||
# just needed when built from git
|
||||
|
|
12
pkgs/tools/X11/xdg-utils/enable-xdg-terminal.patch
Normal file
12
pkgs/tools/X11/xdg-utils/enable-xdg-terminal.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- a/scripts/Makefile.in
|
||||
+++ b/scripts/Makefile.in
|
||||
@@ -21,7 +21,8 @@
|
||||
xdg-open \
|
||||
xdg-email \
|
||||
xdg-screensaver \
|
||||
- xdg-settings
|
||||
+ xdg-settings \
|
||||
+ xdg-terminal
|
||||
# xdg-su
|
||||
# xdg-copy \
|
||||
# xdg-file-dialog
|
Loading…
Reference in a new issue