default.nix: export get

This commit is contained in:
tv 2015-10-02 15:29:47 +02:00
parent 655f510425
commit 5b719cfd5e

View file

@ -11,7 +11,21 @@ let
user-modules-path = ./. + "/${current-user-name}/3modules";
user-pkgs-path = ./. + "/${current-user-name}/5pkgs";
# XXX This is only used interactively, e.g. using get.
pkgs =
let
pkgs = import <nixpkgs> {};
args = {
inherit pkgs;
lib = pkgs.lib;
};
in
pkgs //
import krebs-pkgs-path args //
import user-pkgs-path args;
out =
{ inherit pkgs; } //
lib.mapAttrs (_: builtins.getAttr "main")
(lib.filterAttrs (_: builtins.hasAttr "main")
(lib.mapAttrs