mirror of
https://github.com/nix-community/docker-nixpkgs.git
synced 2026-01-12 04:40:42 -05:00
avoid repeating myself to create a new image, create a new folder under ./images that contains a default.nix. That's it.
12 lines
309 B
Nix
12 lines
309 B
Nix
_: pkgs: let
|
|
importDir = import ./lib/importDir.nix {
|
|
inherit (pkgs) lib;
|
|
};
|
|
in {
|
|
# builder stuff can be in the top-level
|
|
buildCLIImage = pkgs.callPackage ./lib/buildCLIImage.nix {};
|
|
|
|
# docker images must be lower-cased
|
|
docker-nixpkgs = importDir (path: pkgs.callPackage path {}) ./images;
|
|
}
|