Skip to content
Snippets Groups Projects
Commit 4ddd077b authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

find-runtime-roots.pl: Don't hardcode /nix/store

parent 0374d944
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,7 @@
use strict;
use Nix::Utils;
use Nix::Config;
sub readProc {
......@@ -39,7 +40,7 @@ sub readProc {
# Get all store paths that appear in the environment of this process.
eval {
my $env = Nix::Utils::readFile "$process/environ";
my @matches = $env =~ /\/nix\/store\/[0-9a-z]+[0-9a-zA-Z\+\-\._\?=]*/g;
my @matches = $env =~ /\Q$Nix::Config::storeDir\E\/[0-9a-z]+[0-9a-zA-Z\+\-\._\?=]*/g;
print "$_\n" foreach @matches;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment