{
description = "Pyroclear";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs, ... }:
let
systems = [
"x86_64-linux"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
default = pkgs.callPackage ./package.nix { };
pyroclear = pkgs.callPackage ./package.nix { };
}
);
overlays.default = final: prev: {
pyroclear = final.callPackage ./package.nix { };
};
devShells = forAllSystems (
system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
default = pkgs.mkShell {
packages = with pkgs; [
rustc
cargo
];
};
}
);
};
}