sane-scripts: lift sane-find-dotfiles out of resholve

This commit is contained in:
Colin 2023-06-06 08:09:37 +00:00
parent e5fe7c093a
commit 4d2268b5f1
2 changed files with 7 additions and 1 deletions

View File

@ -148,6 +148,11 @@ let
src = ./src;
pkgs = [ "inotify-tools" "ncurses" ];
};
find-dotfiles = static-nix-shell.mkBash {
pname = "sane-find-dotfiles";
src = ./src;
pkgs = [ "findutils" ];
};
ip-check-upnp = static-nix-shell.mkPython3Bin {
pname = "sane-ip-check-upnp";
src = ./src;

View File

@ -1,4 +1,5 @@
#!/usr/bin/env bash
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p findutils
# find where a package stores its dotfiles/dotdir
# e.g. `sane-find-dotfiles foo` might print `/home/colin/.foo`, `/home/colin/.local/share/foo`, etc.