summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-02-02 03:29:42 +0100
committertv <tv@krebsco.de>2016-02-02 03:29:42 +0100
commit1b67c62f15e1c92aa1ccdf392fcdfe85488e3f48 (patch)
tree6342c115307c61bb47d86386883cdf98cbb39f0c /Makefile
parent8e219cd0a2446e8f141e0f2403413a9bd3f0b061 (diff)
make populate: define and pass lib to krebs/v2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f81666ae..c4f5cd39 100644
--- a/Makefile
+++ b/Makefile
@@ -55,14 +55,18 @@ endif
# usage: make populate system=foo [target=bar]
.PHONY: populate
+populate: export lib = \
+ let nlib = import <nixpkgs/lib>; in \
+ nlib // import krebs/4lib { lib = nlib; } // builtins
populate: export source = \
- with (import ~/stockholm {}).users.$(LOGNAME).$(system).config.krebs.build; \
+ with (import ./. {}).users.$(LOGNAME).$(system).config.krebs.build; \
assert source-version == 2; \
source
populate:;@
result=$$(nix-instantiate \
--eval \
--json \
+ --arg lib "$$lib" \
--arg source "$$source" \
--argstr target-host "$$target" \
--argstr target-path /var/src \