summaryrefslogtreecommitdiffstats
path: root/default.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-04 07:12:56 +0100
committertv <tv@krebsco.de>2016-02-04 07:12:56 +0100
commita91803319b3d340ab9a879c11669e3e60d564572 (patch)
tree36ac84e5e6363f31460f4b6651136ac352d224d7 /default.nix
parent307e0afe851654e07e0c3fca25adf60ada3d974d (diff)
stockholm: bring back nspath
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/default.nix b/default.nix
index 278f1d14d..b0ad60d8a 100644
--- a/default.nix
+++ b/default.nix
@@ -27,9 +27,10 @@ let stockholm = {
nlib = import (slib.npath "lib");
klib = import (slib.kpath "4lib") { lib = nlib; };
slib = rec {
+ nspath = ns: p: ./. + "/${ns}/${p}";
npath = p: nixpkgs-path + "/${p}";
- kpath = p: ./. + "/krebs/${p}";
- upath = p: ./. + "/${current-user-name}/${p}";
+ kpath = nspath "krebs";
+ upath = nspath current-user-name;
};
ulib = let p = slib.upath "4lib"; in
nlib.optionalAttrs (klib.dir.has-default-nix p)