don't wrap shell scripts in nix file
This commit is contained in:
parent
cdcdc90a10
commit
5422aea875
5 changed files with 147 additions and 52 deletions
|
@ -1,15 +1,32 @@
|
|||
{ config, lib, ... }:
|
||||
(pkgs: _:
|
||||
let import_script = (_: path: import (path) { inherit config pkgs lib; });
|
||||
in lib.mapAttrs import_script {
|
||||
with pkgs;
|
||||
let
|
||||
import_script = (_: path: import (path) { inherit config pkgs lib; });
|
||||
create_shell_app = (name: text: runtimeInputs: pkgs.writeShellApplication {
|
||||
inherit name runtimeInputs;
|
||||
text = (builtins.readFile text);
|
||||
checkPhase = "";
|
||||
});
|
||||
create_shell_apps = lib.mapAttrs (name: deps: create_shell_app name ./${name} deps);
|
||||
in create_shell_apps {
|
||||
br = [];
|
||||
bmenu = [
|
||||
bemenu
|
||||
dhist
|
||||
fish
|
||||
j4-dmenu-desktop
|
||||
jq
|
||||
sway
|
||||
];
|
||||
} // lib.mapAttrs import_script {
|
||||
wdmenu = ./wdmenu.nix;
|
||||
wlauncher = ./wlauncher.nix;
|
||||
bmenu = ./bmenu.nix;
|
||||
# bmenu = ./bmenu.nix;
|
||||
_diffr = ./diffr.nix;
|
||||
kak-pager = ./kak-pager.nix;
|
||||
terminal = ./terminal.nix;
|
||||
wpass = ./wpass.nix;
|
||||
screenshotsh = ./screenshotsh.nix;
|
||||
_gpg-unlock = ./_gpg-unlock.nix;
|
||||
br = ./br.nix;
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue