mirror of
https://github.com/ilyakooo0/nix-bundle.git
synced 2024-10-26 08:42:01 +03:00
07e28d9384
Usage is: find -L $(./closure.sh inkscape) -name '*.a' -exec du -a {} + \ | sort -nr to find large .a files
8 lines
194 B
Bash
Executable File
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")
|