diff options
Diffstat (limited to 'scripts/nix-unpack-closure.in')
-rw-r--r-- | scripts/nix-unpack-closure.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/nix-unpack-closure.in b/scripts/nix-unpack-closure.in index 89e7aa24d5cb..2b60bb4851dd 100644 --- a/scripts/nix-unpack-closure.in +++ b/scripts/nix-unpack-closure.in @@ -77,3 +77,12 @@ closedir(DIR) or die; # Register the invalid paths as valid. system("nix-store --register-validity <'$tmpDir/validity'") == 0 or die "nix-store --register-validity failed"; + + +# Show the top-level paths so that something useful can be done with +# them, e.g., passing them to `nix-env -i'. +if (-e "$tmpDir/unpacked/top-level") { + open TOPLEVEL, "<$tmpDir/unpacked/top-level" or die; + while (<TOPLEVEL>) { print "$_"; } + close TOPLEVEL; +} |