13 lines
269 B
Bash
Executable File
13 lines
269 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
storePath="$1"
|
|
|
|
binaryCacheDir=$(mktemp -d)
|
|
trap 'rm -rf ${binaryCacheDir}' EXIT
|
|
|
|
nix copy --to "file://${binaryCacheDir}" "${storePath}"
|
|
|
|
echo "Nar Size;Nar Name"
|
|
find "${binaryCacheDir}"/nar -name "*.nar.xz" -printf "%s;%f\n" |