advent-of-code/flake.nix

22 lines
646 B
Nix

{
inputs.nixpkgs.url = "nixpkgs/nixos-22.11";
outputs = { self, nixpkgs }: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
packages.${system} = {
day01 = pkgs.callPackage ./day01 { };
day02 = pkgs.callPackage ./day02 { };
day03 = pkgs.callPackage ./day03 { };
day04 = pkgs.callPackage ./day04 { };
day05 = pkgs.callPackage ./day05 { };
day06 = pkgs.callPackage ./day06 { };
day07 = pkgs.callPackage ./day07 { };
day08 = pkgs.callPackage ./day08 { };
day09 = pkgs.callPackage ./day09 { };
day10 = pkgs.callPackage ./day10 { };
};
};
}