2018-07-21 12:50:01 +00:00
|
|
|
{ pkgs ? import <nixpkgs> {} }:
|
|
|
|
let
|
|
|
|
inherit (pkgs) callPackage;
|
|
|
|
inherit (pkgs.lib) filterAttrs mapAttrs;
|
|
|
|
inherit (builtins) substring readDir;
|
|
|
|
|
|
|
|
here = ./.;
|
|
|
|
|
|
|
|
want = filterAttrs (name: type:
|
|
|
|
type == "directory" && (substring 0 1 name) != "."
|
|
|
|
) (readDir here);
|
2018-07-21 13:32:12 +00:00
|
|
|
in mapAttrs (name: type:
|
|
|
|
callPackage (import here/name)
|
|
|
|
) want
|