We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f50f8a commit 7945783Copy full SHA for 7945783
default.nix
@@ -8,13 +8,13 @@
8
9
{ pkgs ? import <nixpkgs> { } }:
10
11
-{
+# automatically call packages under pkgs/
12
+builtins.mapAttrs (name: _: pkgs.callPackage (./pkgs + "/${name}") {}) (builtins.readDir ./pkgs)
13
+// {
14
# The `lib`, `modules`, and `overlays` names are special
15
lib = import ./lib { inherit pkgs; }; # functions
16
modules = import ./modules; # NixOS modules
17
overlays = import ./overlays; # nixpkgs overlays
18
- example-package = pkgs.callPackage ./pkgs/example-package { };
- # some-qt5-package = pkgs.libsForQt5.callPackage ./pkgs/some-qt5-package { };
19
- # ...
+ # automatic packages can still be overriden
20
}
0 commit comments