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/
|
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-06 01:42:04 +03:00
|
|
|
packagesDir = "/packages";
|
|
|
|
packageSets.nixpkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
};
|
2023-09-03 11:24:46 +03:00
|
|
|
};
|
|
|
|
}
|