Change shell.nix to flake

This commit is contained in:
2025-08-31 14:29:11 -04:00
parent 1d91d7a39d
commit f82d5fbff7
3 changed files with 85 additions and 10 deletions

24
flake.nix Normal file
View File

@@ -0,0 +1,24 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.05";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
haskell.compiler.ghc90
cabal-install
llvm_18
];
};
}
);
}