about summary refs log tree commit diff
path: root/pkgs/profpatsch/default.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-03-25 13:49:45 +0100
committerProfpatsch <mail@profpatsch.de>2019-03-25 13:53:46 +0100
commit2217ba46e3e93d049c5e6aadf3b1c0090e8c7725 (patch)
tree9c2904e8f691b07faf2aaae8c13dcc568775b2ce /pkgs/profpatsch/default.nix
parent4431d5a0db4d65f224ed866655eec2ec9eac159a (diff)
pkgs.profpatsch: add nixperiments
Diffstat (limited to 'pkgs/profpatsch/default.nix')
-rw-r--r--pkgs/profpatsch/default.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix
index c02ccccf..d7c94ea6 100644
--- a/pkgs/profpatsch/default.nix
+++ b/pkgs/profpatsch/default.nix
@@ -29,8 +29,30 @@ let
       };
     in builtins.listToAttrs (builtins.map f xs);
 
+  # various nix utils and fun experiments
+  nixperiments =
+    let
+      src = pkgs.fetchFromGitHub {
+        owner = "Profpatsch";
+        repo = "nixperiments";
+        rev = "1c654b42d46b680ceef8e2c65a40886f3f8614b9";
+        sha256 = "1lflgly8zy4s212s2caj21si15ydbgbm0szck66vrnwqvw3v3nws";
+      };
+    in import src { nixpkgs = pkgs; };
 
 in rec {
+  inherit (nixperiments)
+    # filterSource by parsing a .gitignore file
+    filterSourceGitignore
+    # canonical pattern matching primitive
+    match
+    # generate an option parser for scripts
+    script
+    # derivation testing
+    drvSeq drvSeqL withTests
+    # using the nix evaluator as a json transformation runtime
+    json2json json2string;
+
   backlight = callPackage ./backlight { inherit (pkgs.xorg) xbacklight; };
   display-infos = callPackage ./display-infos {};
   nix-http-serve = callPackage ./nix-http-serve {};