1
0
Fork 0
mirror of https://cgit.krebsco.de/krops synced 2024-12-23 02:09:51 +01:00

pkgs: add nix-writers 3.0.0 to overlays

This commit is contained in:
tv 2018-09-16 10:10:37 +02:00
parent a690f0aeca
commit 5ae2b7f369
2 changed files with 8 additions and 10 deletions

View file

@ -1,7 +1,15 @@
{ overlays ? [], ... }@args:
let
nix-writers = builtins.fetchGit {
url = https://cgit.krebsco.de/nix-writers/;
rev = "c27a9416e8ee04d708b11b48f8cf1a055c0cc079";
};
in
import <nixpkgs> (args // {
overlays = overlays ++ [
(import ./overlay.nix)
(import "${nix-writers}/pkgs")
];
})

View file

@ -5,14 +5,4 @@ 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"
'';
}