summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-02-28 14:15:29 +0100
committertv <tv@krebsco.de>2018-02-28 15:15:58 +0100
commitdd4fac0fa477c7e3da10aef705d4b1757369d11d (patch)
treec82e7d91f15f25b96a8498fb4cd2d3a9bc3ba783
parent3ac7941968e20ebaf553a7e44f8dbfb990de4eb1 (diff)
populate: 2.1.0 -> 2.3.0
-rw-r--r--krebs/5pkgs/simple/populate/default.nix4
-rw-r--r--lib/types.nix15
2 files changed, 17 insertions, 2 deletions
diff --git a/krebs/5pkgs/simple/populate/default.nix b/krebs/5pkgs/simple/populate/default.nix
index 62e3ab216..e35423b49 100644
--- a/krebs/5pkgs/simple/populate/default.nix
+++ b/krebs/5pkgs/simple/populate/default.nix
@@ -16,12 +16,12 @@ in
stdenv.mkDerivation rec {
name = "populate";
- version = "2.1.0";
+ version = "2.3.0";
src = fetchgit {
url = http://cgit.ni.krebsco.de/populate;
rev = "refs/tags/v${version}";
- sha256 = "0cr50y6h6nps0qgpmi01h0z9wzpv2704y5zgx2salk1grkmvcfmh";
+ sha256 = "05zr132k1s3a1cc879lvhb83hax7dbfmsbrnxmh7dxjcdg3yhxd7";
};
phases = [
diff --git a/lib/types.nix b/lib/types.nix
index 9ae92ea7e..1cf2d96c9 100644
--- a/lib/types.nix
+++ b/lib/types.nix
@@ -255,6 +255,14 @@ rec {
default = null;
type = nullOr source-types.pass;
};
+ pipe = mkOption {
+ apply = x:
+ if absolute-pathname.check x
+ then { command = x; }
+ else x;
+ default = null;
+ type = nullOr (either absolute-pathname source-types.pipe);
+ };
symlink = mkOption {
type = nullOr (either pathname source-types.symlink);
default = null;
@@ -294,6 +302,13 @@ rec {
};
};
};
+ pipe = submodule {
+ options = {
+ command = mkOption {
+ type = absolute-pathname;
+ };
+ };
+ };
symlink = submodule {
options = {
target = mkOption {