sxmo-utils: use xdg-open in sxmo_open.sh

This commit is contained in:
Colin 2023-12-13 02:51:47 +00:00
parent 41411e005f
commit e7cfa19897

View File

@ -47,11 +47,13 @@
, wtype , wtype
, wvkbd , wvkbd
, xdg-user-dirs , xdg-user-dirs
, xdg-utils
, xdotool , xdotool
, xrdb , xrdb
, supportSway ? true , supportSway ? true
, supportDwm ? false , supportDwm ? false
, preferSystemd ? false , preferSystemd ? false
, preferXdgOpen ? true
}: }:
let let
@ -98,7 +100,7 @@ let
dmenu dmenu
scrot # sxmo_screenshot.sh scrot # sxmo_screenshot.sh
xdotool xdotool
]; ] ++ lib.optionals preferXdgOpen [ xdg-utils ];
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "sxmo-utils"; pname = "sxmo-utils";
@ -149,6 +151,12 @@ stdenv.mkDerivation rec {
# url = "https://git.uninsane.org/colin/sxmo-utils/commit/030280cb83298ea44656e69db4f2693d0ea35eb9.patch"; # url = "https://git.uninsane.org/colin/sxmo-utils/commit/030280cb83298ea44656e69db4f2693d0ea35eb9.patch";
# hash = "sha256-dc71eztkXaZyy+hm5teCw9lI9hKS68pPoP53KiBm5Fg="; # hash = "sha256-dc71eztkXaZyy+hm5teCw9lI9hKS68pPoP53KiBm5Fg=";
# }) # })
] ++ lib.optionals preferXdgOpen [
(fetchpatch {
name = "sxmo_open: use xdg-open";
url = "https://git.uninsane.org/colin/sxmo-utils/commit/8897aa5ef869be879e2419f70a16afd710f053fe.patch";
hash = "sha256-jvMSDJdOGeN2VGnuQ6UT/1gmFJtzTXTxt0WJ9gPInpU=";
})
]; ];
postPatch = '' postPatch = ''