#!/usr/bin/env nix
#! nix shell nixpkgs#bash nixpkgs#gnugrep nixpkgs#nvd --command bash

# diffs each derivation

set -x
set -v
set -e

script_path=$(dirname "$(readlink -f $0)")
parent_path=$(dirname "$script_path")

nix run . -- --compare-drvs --compare-output-to-file "$parent_path"