Files
aoc-2022/flake.nix
2023-09-23 08:11:43 +02:00

28 lines
534 B
Nix

{
description = "Advent Of Code 2022";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs }:
let
forAllSystems = function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-darwin"
] (system: function nixpkgs.legacyPackages.${system});
in
{
devShells = forAllSystems (pkgs: with pkgs; {
default = mkShell {
buildInputs = [ ghc cabal-install haskell-language-server ];
};
});
};
}