1
Fork 0
hare-nix/flake.nix

29 lines
850 B
Nix
Raw Normal View History

2024-05-14 19:02:43 +00:00
{
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};
hareAs = pkgs.callPackage ./pkgs/hare-as.nix { };
hareCc = pkgs.callPackage ./pkgs/hare-cc.nix { };
hareLd = pkgs.callPackage ./pkgs/hare-ld.nix { };
harec = pkgs.callPackage ./pkgs/harec.nix { inherit hareAs hareCc hareLd; };
hare = pkgs.callPackage ./pkgs/hare.nix { inherit harec hareAs hareCc hareLd; };
2024-05-14 19:02:43 +00:00
in
{
default = pkgs.mkShell {
buildInputs = [
harec
2024-05-14 19:06:04 +00:00
hare
2024-05-14 19:02:43 +00:00
];
};
});
};
}