summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/populate/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix
index 939ffb3..dcb26b9 100644
--- a/pkgs/populate/default.nix
+++ b/pkgs/populate/default.nix
@@ -20,6 +20,10 @@ let
fi
'';
+ pop.derivation = target: source: shell' target /* sh */ ''
+ nix-build -E ${quote source.text} -o ${quote target.path}
+ '';
+
pop.file = target: source: let
configAttrs = ["useChecksum"];
config = filterAttrs (name: _: elem name configAttrs) source;