advent-of-code/2022/flake.nix

23 lines
921 B
Nix
Raw Normal View History

2022-12-01 21:38:11 +01:00
{
inputs.nixpkgs.url = "nixpkgs/nixos-22.11";
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
2022-12-12 13:57:34 +01:00
AoCLib = pkgs.callPackage ./lib.nix { };
2022-12-01 21:38:11 +01:00
packages.${system} = {
2022-12-12 13:57:34 +01:00
day01 = pkgs.callPackage ./day01 { inherit (self) AoCLib; };
day02 = pkgs.callPackage ./day02 { inherit (self) AoCLib; };
day03 = pkgs.callPackage ./day03 { inherit (self) AoCLib; };
day04 = pkgs.callPackage ./day04 { inherit (self) AoCLib; };
day05 = pkgs.callPackage ./day05 { inherit (self) AoCLib; };
day06 = pkgs.callPackage ./day06 { inherit (self) AoCLib; };
day07 = pkgs.callPackage ./day07 { inherit (self) AoCLib; };
day08 = pkgs.callPackage ./day08 { inherit (self) AoCLib; };
day09 = pkgs.callPackage ./day09 { inherit (self) AoCLib; };
day10 = pkgs.callPackage ./day10 { inherit (self) AoCLib; };
2022-12-01 21:38:11 +01:00
};
};
2022-12-03 13:12:25 +01:00
}