nixos-config/modules/nixos/graphical/compositor/launcher.nix
Charlotte Van Petegem 5f8d59c405
Some checks are pending
Cachix / build (elendel) (push) Waiting to run
Cachix / build (kholinar) (push) Waiting to run
Cachix / build (marabethia) (push) Waiting to run
Replace substituteAll with replaceVars
2025-04-30 19:11:00 +02:00

21 lines
378 B
Nix

{ pkgs, stdenv }:
let
script = pkgs.replaceVars ./launcher.zsh {
inherit (pkgs)
fzy
libqalculate
nix
pass
slurp
uni
zsh
;
wlClipboard = pkgs.wl-clipboard;
xdgUserDirs = pkgs.xdg-user-dirs;
};
in
pkgs.runCommand "launcher" { } ''
mkdir -p $out/bin
cp ${script} $out/bin/launcher
chmod +x $out/bin/launcher
''