2023-09-03 11:24:46 +03:00
|
|
|
{
|
|
|
|
description = "My flake with dream2nix packages";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
dream2nix.url = "github:nix-community/dream2nix";
|
2023-09-29 21:32:59 +03:00
|
|
|
nixpkgs.follows = "dream2nix/nixpkgs";
|
2023-09-03 11:24:46 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = inputs @ {
|
|
|
|
self,
|
|
|
|
dream2nix,
|
|
|
|
nixpkgs,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
system = "x86_64-linux";
|
|
|
|
in {
|
2023-10-24 15:32:58 +03:00
|
|
|
# All packages defined in ./packages/<name> are automatically added to the flake outputs
|
|
|
|
# e.g., 'packages/hello/default.nix' becomes '.#packages.hello'
|
2023-09-06 01:42:04 +03:00
|
|
|
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";
|
2023-09-20 22:48:16 +03:00
|
|
|
packagesDir = ./packages;
|
2023-09-06 01:42:04 +03:00
|
|
|
packageSets.nixpkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
};
|
2023-09-03 11:24:46 +03:00
|
|
|
};
|
|
|
|
}
|