1
0
Fork 0
mirror of https://github.com/cachix/cachix-action.git synced 2025-06-09 09:35:10 +09:00
cachix-action/dist/list-nix-store.sh
Sander 6212f62921
dev: restructure build
- Remove main/index indirection
- Bump module resolution to nodenext
- Enable source map
2025-01-03 10:12:46 +04:00

27 lines
481 B
Bash
Executable file

#!/usr/bin/env bash
# Small utility to replace `nix path-info --all`
set -euo pipefail
for file in /nix/store/*; do
case "$file" in
*.drv)
# Avoid .drv as they are not generally useful
continue
;;
*.drv.chroot)
# Avoid .drv.chroot as they are not generally useful
continue
;;
*.check)
# Skip .check file produced by --keep-failed
continue
;;
*.lock)
# Skip .lock files
continue
;;
*)
echo "$file"
;;
esac
done