mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-26 16:03:38 +03:00
556f2e7114
This makes the repo initialization simpler (see examples)
27 lines
639 B
Nix
27 lines
639 B
Nix
{
|
|
description = "My flake with dream2nix packages";
|
|
|
|
inputs = {
|
|
dream2nix.url = "github:nix-community/dream2nix";
|
|
nixpkgs.url = "nixpkgs/nixos-unstable";
|
|
};
|
|
|
|
outputs = inputs @ {
|
|
self,
|
|
dream2nix,
|
|
nixpkgs,
|
|
...
|
|
}: let
|
|
system = "x86_64-linux";
|
|
in {
|
|
# all packages defined inside ./packages/
|
|
packages.${system} = dream2nix.lib.importPackages {
|
|
projectRoot = ./.;
|
|
# can be changed to ".git" or "flake.nix" to get rid of .project-root
|
|
projectRootFile = ".project-root";
|
|
packagesDir = "/packages";
|
|
packageSets.nixpkgs = nixpkgs.legacyPackages.${system};
|
|
};
|
|
};
|
|
}
|