summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-12-01 04:20:50 +0100
committerlassulus <lassulus@lassul.us>2018-12-04 23:44:06 +0100
commit140bdfdf6c87c1822e0c4ec8f497a20ad1d4cf19 (patch)
tree5fd7d7eaaa0d6423fc83d02f74e68392114e016e /pkgs
parenteb68146cc4848cfc0c0339c72a44a96fdeb4a1de (diff)
populate: add derivation type
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;