Files
aoc-2022/flake.nix

28 lines
582 B
Nix
Raw Permalink Normal View History

2023-09-22 16:09:57 +02:00
{
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; {
2023-11-07 16:15:01 +01:00
default = (mkShell.override { stdenv = llvmPackages_16.stdenv; }) {
2023-09-22 16:09:57 +02:00
buildInputs = [ ghc cabal-install haskell-language-server ];
};
});
};
}