diff options
author | tv <tv@krebsco.de> | 2016-06-05 00:25:47 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-06-05 00:25:47 +0200 |
commit | 06a7bdf7964695f198357b6985bf2594b3484e13 (patch) | |
tree | adae147f190bd503ef640f4c0c4d28aa63b2b743 | |
parent | 7ee098b98520c858441d244983972bd5b964c512 (diff) |
make build.pkgs.${name}
-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,$@) |