From 5c4f959e79583b0ce5c8870c4904a82f88d27d7f Mon Sep 17 00:00:00 2001 From: Soispha Date: Fri, 29 Dec 2023 13:05:13 +0100 Subject: fix(sys/svcs/xdg/portals): Add alacritty to the dependencies --- sys/svcs/xdg/default.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'sys/svcs/xdg/default.nix') diff --git a/sys/svcs/xdg/default.nix b/sys/svcs/xdg/default.nix index eede4455..60ee2a00 100644 --- a/sys/svcs/xdg/default.nix +++ b/sys/svcs/xdg/default.nix @@ -1,5 +1,6 @@ { pkgs, + sysLib, ... }: { services.dbus.enable = true; @@ -12,16 +13,14 @@ settings = { filechooser = { default_dir = "/tmp"; - cmd = let - nativeBuildInputs = with pkgs; [makeWrapper lf gawk coreutils mktemp dash fd gnugrep]; - in "${pkgs.runCommandLocal "lf_wrapper" { - inherit nativeBuildInputs; - } '' - install -m755 ${./scripts/lf_wrapper} -D "$out/bin/lf_wrapper" - patchShebangs "$out/bin/lf_wrapper" - wrapProgram "$out/bin/lf_wrapper" --prefix PATH : ${pkgs.lib.makeBinPath nativeBuildInputs}; - chown -R 1000:100 "$out/bin" - ''}/bin/lf_wrapper"; + cmd = "${sysLib.writeShellScriptWithLibraryAndKeepPath { + src = ./scripts/lf_wrapper; + name = "lf_wrapper"; + dependencies = with pkgs; [ + lf + alacritty + ]; + }}/bin/lf_wrapper"; }; }; }; -- cgit 1.4.1