aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs/overlay.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-02-28 21:02:21 +0100
committertv <tv@krebsco.de>2018-02-28 21:02:21 +0100
commite89cf20d4310070a877c2e24a287659546b561c9 (patch)
tree18e19a41b65d03782a955235b2a67407157eaa9f /pkgs/overlay.nix
import stockholm's deployment tools
https://cgit.krebsco.de/stockholm 877b4104370c1ea9698a449e376e2842d7c372fd
Diffstat (limited to 'pkgs/overlay.nix')
-rw-r--r--pkgs/overlay.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix
new file mode 100644
index 0000000..89024bd
--- /dev/null
+++ b/pkgs/overlay.nix
@@ -0,0 +1,18 @@
+let
+ lib = import ../lib;
+in
+
+self: super: {
+ kops = self.callPackage ./kops {};
+ populate = self.callPackage ./populate {};
+ writeDash = name: text: self.writeScript name ''
+ #! ${self.dash}/bin/dash
+ ${text}
+ '';
+ writeJSON = name: value: self.runCommand name {
+ json = lib.toJSON value;
+ passAsFile = [ "json" ];
+ } /* sh */ ''
+ ${self.jq}/bin/jq . "$jsonPath" > "$out"
+ '';
+}