diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-09-17 13:42:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-17 13:42:05 +0200 |
commit | fe5cbfd48ff863f21a20b84e324ecfd6395673cb (patch) | |
tree | cfa5f88a6d8da6bf602ff9390a1546a37b8280a6 /perl/lib/Nix/Config.pm.in | |
parent | 787469c7b66aec12ab6847e7db2cdc8aef5c325e (diff) | |
parent | c9f51e87057652db0013289a95deffba495b35e7 (diff) |
Merge pull request #4025 from NixOS/remove-corepkgs-config
Remove corepkgs/config.nix
Diffstat (limited to 'perl/lib/Nix/Config.pm.in')
-rw-r--r-- | perl/lib/Nix/Config.pm.in | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/perl/lib/Nix/Config.pm.in b/perl/lib/Nix/Config.pm.in index bc1749e60..f7c6f2484 100644 --- a/perl/lib/Nix/Config.pm.in +++ b/perl/lib/Nix/Config.pm.in @@ -4,14 +4,8 @@ use MIME::Base64; $version = "@PACKAGE_VERSION@"; -$binDir = $ENV{"NIX_BIN_DIR"} || "@nixbindir@"; -$libexecDir = $ENV{"NIX_LIBEXEC_DIR"} || "@nixlibexecdir@"; -$stateDir = $ENV{"NIX_STATE_DIR"} || "@nixlocalstatedir@/nix"; -$logDir = $ENV{"NIX_LOG_DIR"} || "@nixlocalstatedir@/log/nix"; -$confDir = $ENV{"NIX_CONF_DIR"} || "@nixsysconfdir@/nix"; -$storeDir = $ENV{"NIX_STORE_DIR"} || "@nixstoredir@"; - -$useBindings = 1; +$binDir = Nix::Store::getBinDir; +$storeDir = Nix::Store::getStoreDir; %config = (); |