Files
AoC2022/flake.nix
Amneesh Singh 5fe3ea5567 day1
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2022-12-02 16:03:00 +05:30

32 lines
663 B
Nix

{
description = "AoC 2022 in Haskell";
inputs = {
nixpkgs.url = github:nixos/nixpkgs/release-22.05;
utils.url = github:numtide/flake-utils;
};
outputs = { self, nixpkgs, utils }:
utils.lib.eachDefaultSystem
(system:
let
pkgs = import nixpkgs {
inherit system;
};
in
{
devShells = with pkgs; rec {
default = mkShell {
buildInputs = [ ghc ];
};
withLsp = mkShell {
buildInputs = [
ghc
haskell-language-server
];
};
};
}
);
}