infrastructure/list-nix-store.sh
2022-09-10 10:27:56 +02:00

28 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