Init flake and make project buildable

This commit is contained in:
2024-11-21 09:55:17 +01:00
parent 2b94bc6b3e
commit fa6704f5cd
12 changed files with 402 additions and 16 deletions

34
flake.nix Normal file
View File

@@ -0,0 +1,34 @@
{
inputs = {
dream2nix.url = "github:nix-community/dream2nix";
nixpkgs.follows = "dream2nix/nixpkgs";
};
outputs = {
self,
dream2nix,
nixpkgs,
}: let
eachSystem = nixpkgs.lib.genAttrs [
"aarch64-darwin"
"aarch64-linux"
"x86_64-darwin"
"x86_64-linux"
];
in {
packages = eachSystem (system: rec {
hcpy = default;
default = dream2nix.lib.evalModules {
packageSets.nixpkgs = nixpkgs.legacyPackages.${system};
modules = [
./package.nix
{
paths.projectRootFile = "flake.nix";
paths.projectRoot = ./.;
paths.package = ./.;
}
];
};
});
};
}