Files
aoc2024/flake.nix
Amneesh Singh 45347bf88b day 1
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
2024-12-01 17:34:14 +05:30

33 lines
883 B
Nix

{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
haskell-flake.url = "github:srid/haskell-flake";
};
outputs = inputs@{ self, nixpkgs, flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = nixpkgs.lib.systems.flakeExposed;
imports = [ inputs.haskell-flake.flakeModule ];
perSystem = { self', pkgs, ... }: {
haskellProjects.default = {
basePackages = pkgs.haskellPackages;
devShell = {
enable = true;
hlsCheck.enable = true;
tools = hp: {
inherit (pkgs)
nixpkgs-fmt;
inherit (hp)
cabal-fmt
fourmolu;
};
};
};
packages.default = self'.packages.aoc2024;
};
};
}