1
Fork 0
hare-nix/flake.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2024-05-14 19:02:43 +00:00
{
description = "Hare for mac";
2024-06-01 22:06:43 +00:00
inputs = {
harec-src = {
url = "github:badboy/harelang-harec";
flake = false;
};
hare-src = {
url = "github:badboy/harelang";
flake = false;
};
};
outputs = { nixpkgs, harec-src, hare-src, ... }:
2024-05-14 19:02:43 +00:00
let
supportedSystems = [ "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
devShells = forAllSystems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
2024-05-16 20:47:23 +00:00
hare-as = pkgs.callPackage ./pkgs/hare-as.nix { };
hare-cc = pkgs.callPackage ./pkgs/hare-cc.nix { };
hare-ld = pkgs.callPackage ./pkgs/hare-ld.nix { };
2024-06-01 22:06:43 +00:00
harec = pkgs.callPackage ./pkgs/harec.nix { inherit harec-src hare-as hare-cc hare-ld; };
hare = pkgs.callPackage ./pkgs/hare.nix { inherit hare-src harec hare-as hare-cc hare-ld; };
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
];
};
});
};
}