krebs pkgs: allow recursive pkgs

This commit is contained in:
tv 2015-10-15 01:59:40 +02:00
parent ce86a988c1
commit 521f74a4fe

View File

@ -2,7 +2,12 @@
with import ../4lib { inherit lib; };
mapAttrs (_: flip pkgs.callPackage {}) (subdirsOf ./.) // rec {
let
subdirs = mapAttrs (_: flip pkgs.callPackage {}) (subdirsOf ./.);
pkgs' = pkgs // subdirs;
in
subdirs // rec {
execve = name: { filename, argv, envp ? {}, destination ? "" }:
writeC name { inherit destination; } ''