dream2nix/examples/dream2nix-repo-flake/flake.nix

27 lines
635 B
Nix
Raw Normal View History

2023-09-03 11:24:46 +03:00
{
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
2023-09-09 15:29:58 +03:00
projectRootFile = "flake.nix";
packagesDir = "/packages";
packageSets.nixpkgs = nixpkgs.legacyPackages.${system};
};
2023-09-03 11:24:46 +03:00
};
}