default.nix: export get
This commit is contained in:
parent
655f510425
commit
5b719cfd5e
14
default.nix
14
default.nix
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue