about summary refs log blame commit diff
path: root/users/edef/refscan/testdata/generate.sh
blob: 02d8c4056789fa2e0d846b81e4202bef746d6db9 (plain) (tree)
1
2
3
4
5
6





                                                                                                                                                                     
#! /usr/bin/env bash
set -euo pipefail

drv=$(nix-instantiate '<nixpkgs>' -A ghc)
nix --extra-experimental-features nix-command show-derivation -r "$drv" | jq -r '.[] | .outputs[].path, .inputSrcs[]' | sort -u | cut -d/ -f4 | cut -d- -f1 > maxrefs
nix-store --dump "$(nix-build "$drv")" > nar