customer-portal/flake.nix
chris 28fdba8b00
All checks were successful
Test action / Print hello world (push) Successful in 8m32s
too lazy to think of a message, so enjoy this pointless text. Good luck future me...
2025-10-08 10:49:59 +00:00

39 lines
No EOL
988 B
Nix
Executable file

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
bun2nix = {
url = "github:baileyluTCD/bun2nix";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } {
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
imports = [
./nix/devShells/flake-module.nix
./nix/packages/flake-module.nix
./nix/modules/flake-module.nix
];
perSystem = { lib, self', ... }: {
checks =
let
packages = lib.mapAttrs' (n: lib.nameValuePair "package-${n}") self'.packages;
devShells = lib.mapAttrs' (n: lib.nameValuePair "devShell-${n}") self'.devShells;
in
packages // devShells;
};
};
}