eh/flake.nix
NotAShelf 0996c763ef
Some checks are pending
Rust / build (push) Waiting to run
nix: support additional platforms
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib2041c4c951e4b5870f9322534736a3f6a6a6964
2026-01-30 22:25:04 +03:00

23 lines
613 B
Nix

{
inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
outputs = {
self,
nixpkgs,
}: let
systems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
packages = forEachSystem (system: {
eh = pkgsForEach.${system}.callPackage ./nix/package.nix {};
default = self.packages.${system}.eh;
});
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.callPackage ./nix/shell.nix {};
});
hydraJobs = self.packages;
};
}