27 lines
642 B
Nix
27 lines
642 B
Nix
{
|
|
description = "Hare for mac";
|
|
|
|
outputs = { self, nixpkgs, ... }:
|
|
let
|
|
supportedSystems = [ "x86_64-darwin" "aarch64-darwin" ];
|
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
|
in
|
|
{
|
|
devShells = forAllSystems (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
harec = pkgs.callPackage ./pkgs/harec.nix { };
|
|
hare = pkgs.callPackage ./pkgs/hare.nix { inherit harec; };
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
buildInputs = [
|
|
pkgs.qbe
|
|
harec
|
|
hare
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|