Some checks failed
Check flake.lock / Check health of `flake.lock` (pull_request) Successful in 15s
Check Nix flake / Build nix outputs (ubuntu-latest) (pull_request) Failing after 2m42s
Check Nix formatting / Perform Nix format checks (pull_request) Successful in 2m51s
Check Nix flake / Perform Nix flake checks (ubuntu-latest) (pull_request) Successful in 3m56s
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
20 lines
383 B
Bash
Executable File
20 lines
383 B
Bash
Executable File
#!/usr/bin/env nix
|
|
#! nix shell nixpkgs#bash nixpkgs#gnugrep nixpkgs#nixVersions.latest --command bash
|
|
|
|
# diffs each derivation
|
|
|
|
set -x
|
|
set -v
|
|
set -e
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "$0 (pre|post)"
|
|
exit 1
|
|
fi
|
|
|
|
script_path=$(dirname "$(readlink -f $0)")
|
|
parent_path=$(dirname "$script_path")
|
|
out_path="$parent_path/$1.json"
|
|
|
|
nix run . -- --evaluate --json "$out_path" "$parent_path"
|