mirror of
https://cgit.krebsco.de/krops
synced 2024-11-22 19:19:46 +01:00
pkgs: add nix-writers 3.0.0 to overlays
This commit is contained in:
parent
a690f0aeca
commit
5ae2b7f369
2 changed files with 8 additions and 10 deletions
|
@ -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")
|
||||
];
|
||||
})
|
||||
|
|
|
@ -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"
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue