29 lines
859 B
Nix
29 lines
859 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};
|
|
hare-as = pkgs.callPackage ./pkgs/hare-as.nix { };
|
|
hare-cc = pkgs.callPackage ./pkgs/hare-cc.nix { };
|
|
hare-ld = pkgs.callPackage ./pkgs/hare-ld.nix { };
|
|
harec = pkgs.callPackage ./pkgs/harec.nix { inherit hare-as hare-cc hare-ld; };
|
|
hare = pkgs.callPackage ./pkgs/hare.nix { inherit harec hare-as hare-cc hare-ld; };
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
buildInputs = [
|
|
harec
|
|
hare
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|