mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-11-29 23:35:33 +03:00
21 lines
594 B
Nix
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
|