1
Fork 0
hare-playground/flake.nix

34 lines
787 B
Nix
Raw Normal View History

2024-06-01 22:48:38 +00:00
{
description = "Hare for mac";
inputs = {
hare-pkgs = {
2024-06-01 22:53:39 +00:00
url = "git+https://git.fnordig.de/jer/hare-mac.git?ref=main";
2024-06-01 22:48:38 +00:00
};
};
outputs = { nixpkgs, hare-pkgs, ... }:
let
supportedSystems = [ "x86_64-darwin" "aarch64-darwin" "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
in
{
devShells = forAllSystems (system:
let
pkgs = nixpkgs.legacyPackages.${system};
hare-pkgs' = hare-pkgs.packages.${system};
harec = hare-pkgs'.harec;
hare = hare-pkgs'.hare;
in
{
default = pkgs.mkShell {
buildInputs = [
harec
hare
2024-06-01 22:54:26 +00:00
pkgs.hurl
2024-06-01 22:48:38 +00:00
];
};
});
};
}