summaryrefslogtreecommitdiffstats
path: root/pkgs/overlay.nix
blob: 89024bd89b649f4c095a0eea20c67c17453602c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"
  '';
}