nix-bundle/closure.sh
Matthew Bauer 07e28d9384 Fix closure.sh
Usage is:

find -L $(./closure.sh inkscape) -name '*.a' -exec du -a {} + \
  | sort -nr

to find large .a files
2017-02-12 18:26:09 -06:00

8 lines
194 B
Bash
Executable File

#!/usr/bin/env sh
target="$1"
expr="with import <nixpkgs> {}; with import ./. {}; closure { targets = [$target]; }"
nix-store --no-gc-warning -r $(nix-instantiate --no-gc-warning -E "$expr")