aboutsummaryrefslogtreecommitdiff
path: root/corepkgs/config.nix.in
blob: cb994594420e96e59201019e3d95f3d536eaa294 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# FIXME: remove this file?
let
  fromEnv = var: def:
    let val = builtins.getEnv var; in
    if val != "" then val else def;
in rec {
  nixBinDir = fromEnv "NIX_BIN_DIR" "@bindir@";
  nixPrefix = "@prefix@";
  nixLibexecDir = fromEnv "NIX_LIBEXEC_DIR" "@libexecdir@";
  nixLocalstateDir = "@localstatedir@";
  nixSysconfDir = "@sysconfdir@";
  nixStoreDir = fromEnv "NIX_STORE_DIR" "@storedir@";
}