1
Fork 0
hare-nix/flake.nix

29 lines
859 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};
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 { };
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; };
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
];
};
});
};
}