diff options
author | tv <tv@krebsco.de> | 2018-02-28 21:02:21 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-02-28 21:02:21 +0100 |
commit | e89cf20d4310070a877c2e24a287659546b561c9 (patch) | |
tree | 18e19a41b65d03782a955235b2a67407157eaa9f /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.nix | 18 |
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" + ''; +} |