aboutsummaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/default.nix8
-rw-r--r--pkgs/overlay.nix10
2 files changed, 8 insertions, 10 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index 639ed13..b8530a8 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -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")
];
})
diff --git a/pkgs/overlay.nix b/pkgs/overlay.nix
index 95d4938..24ecf17 100644
--- a/pkgs/overlay.nix
+++ b/pkgs/overlay.nix
@@ -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"
- '';
}