0b9e1aca63
reUSE.software compliant :) Change-Id: I349f1958a11ab7ee98d67c90d02f1c799e9d30fe Reviewed-on: https://cl.tvl.fyi/c/depot/+/7688 Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI Reviewed-by: edef <edef@edef.eu>
8 lines
374 B
Bash
Executable file
8 lines
374 B
Bash
Executable file
#! /usr/bin/env bash
|
|
# SPDX-FileCopyrightText: edef <edef@edef.eu>
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
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
|