diff options
author | makefu <github@syntax-fehler.de> | 2016-06-06 21:27:50 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-06-06 21:27:50 +0200 |
commit | d587575deb7d6d3c94f684a7b6f6a6a2da0db247 (patch) | |
tree | 71dc6d19487bdbc2451a6711e220a7000023c4db /Makefile | |
parent | 7bbf87d9a4923f15cc04847ad762e4279ee752bf (diff) | |
parent | baa20586b875e5b6bd600cf731f15d2251d05c95 (diff) |
Merge remote-tracking branch 'prism/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,$@) |