diff options
author | lassulus <lass@aidsballs.de> | 2016-06-05 00:38:00 +0200 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2016-06-05 00:38:00 +0200 |
commit | baa20586b875e5b6bd600cf731f15d2251d05c95 (patch) | |
tree | 19ad3210a2b8485ac22d26f75b2e2493d3f61596 /Makefile | |
parent | 231eda580b273d630fe10894d4ea46135c1f941d (diff) | |
parent | c1c645b545b960eb639fc6d41dfa35ee187ae164 (diff) |
Merge remote-tracking branch 'cd/master'
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -48,6 +48,14 @@ $(if $(target_user),,$(error unbound variable: target_user)) $(if $(target_port),,$(error unbound variable: target_port)) $(if $(target_path),,$(error unbound variable: target_path)) +build = \ + nix-build \ + --no-out-link \ + --show-trace \ + -I nixos-config=$(nixos-config) \ + -I stockholm=$(stockholm) \ + -E "let build = import <stockholm>; in $(1)" + evaluate = \ nix-instantiate \ --eval \ @@ -74,6 +82,10 @@ deploy: env STOCKHOLM_VERSION="$$STOCKHOLM_VERSION" \ nixos-rebuild switch --show-trace -I $(target_path) +# usage: make build.pkgs.get +build build.:;@$(call build,$${expr-eval}) +build.%:;@$(call build,$@) + # usage: make LOGNAME=shared system=wolf eval.config.krebs.build.host.name eval eval.:;@$(call evaluate,$${expr-eval}) eval.%:;@$(call evaluate,$@) |