Files
haskell-wasm/flake.nix
T
2026-07-10 18:55:21 -06:00

30 lines
654 B
Nix

{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs = { self, nixpkgs, ... }@inputs:
let
supportedSystems = [
"aarch64-darwin" "aarch64-linux"
"x86_64-darwin" "x86_64-linux"
];
each-system = f: nixpkgs.lib.genAttrs supportedSystems (system: f rec {
pkgs = import nixpkgs {
inherit system;
};
inherit (pkgs) lib;
inherit system;
});
in {
devShells = each-system ({ pkgs, system, ... }: {
default = pkgs.mkShell {
packages = with pkgs; [
cabal-install ghc stack
];
};
});
};
}