dream2nix/examples/repo-with-packages/default.nix
2023-11-07 19:08:27 +07:00

21 lines
594 B
Nix

{
dream2nixSource ?
builtins.fetchTarball {
url = "https://github.com/nix-community/dream2nix/tarball/main";
# sha256 = "";
},
pkgs ? import (import dream2nixSource {}).inputs.nixpkgs {},
}: let
dream2nix = import dream2nixSource {};
# all packages defined inside ./packages/
packages = dream2nix.lib.importPackages {
projectRoot = ./.;
# can be changed to ".git" to get rid of .project-root
projectRootFile = ".project-root";
packagesDir = ./packages;
packageSets.nixpkgs = pkgs;
};
in
# all packages defined inside ./packages/
packages