Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-12-02 04:47:21 +05:30
commit 98121485a7
4 changed files with 115 additions and 0 deletions

31
flake.nix Normal file
View File

@@ -0,0 +1,31 @@
{
description = "AoC 2023 in Haskell";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/release-23.11;
utils.url = github:numtide/flake-utils;
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
};
src = ./.;
in
with pkgs; {
devShells.default = mkShell {
buildInputs = [
ghc
haskell-language-server
];
};
apps.default = {
type = "app";
program = "${ghc}/bin/runhaskell";
};
}
);
}