Advent of Code Solutions
advent-of-code
aoc
1{
2 description = "Advent of Code";
3 inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
4
5 outputs =
6 { self, nixpkgs }:
7 let
8 systems = [ "x86_64-linux" ];
9 forSystems = function: nixpkgs.lib.genAttrs systems (system: function (import nixpkgs { inherit system; }));
10 in
11 {
12 formatter = forSystems (pkgs: pkgs.nixfmt-tree.override { settings.formatter.nixfmt.options = [ "-w 120" ]; });
13 devShells = forSystems (pkgs: {
14 default = self.devShells.${pkgs.system}."2015";
15 "2015" = pkgs.mkShellNoCC {
16 buildInputs = with pkgs; [
17 (with beamMinimalPackages; [
18 erlang
19 erlang-language-platform
20 erlfmt
21 ])
22 ];
23 };
24 });
25 };
26}