1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-12-24 02:39:52 +01:00
krops/pkgs/overlay.nix
2018-05-03 13:11:33 +02:00

18 lines
405 B
Nix

let
lib = import ../lib;
in
self: super: {
krops = self.callPackage ./krops {};
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"
'';
}