Skip to content

Commit 7945783

Browse files
committed
autocall packages under pkgs/
1 parent 4f50f8a commit 7945783

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
{ pkgs ? import <nixpkgs> { } }:
1010

11-
{
11+
# automatically call packages under pkgs/
12+
builtins.mapAttrs (name: _: pkgs.callPackage (./pkgs + "/${name}") {}) (builtins.readDir ./pkgs)
13+
// {
1214
# The `lib`, `modules`, and `overlays` names are special
1315
lib = import ./lib { inherit pkgs; }; # functions
1416
modules = import ./modules; # NixOS modules
1517
overlays = import ./overlays; # nixpkgs overlays
1618

17-
example-package = pkgs.callPackage ./pkgs/example-package { };
18-
# some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
19-
# ...
19+
# automatic packages can still be overriden
2020
}

0 commit comments

Comments
 (0)