https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
4 lines
89 B
Bash
4 lines
89 B
Bash
source $stdenv/setup
|
|
|
|
# !!! this is kinda hacky.
|
|
set | grep -E '^[a-zA-Z]+=.*://' > $out
|