1
0
aoc23/flake.nix
xeals cf4dea84d9
All checks were successful
Build and test / test (push) Successful in 2m57s
Add AOC CLI to flake
2023-11-30 14:52:15 +11:00

39 lines
967 B
Nix

{
description = "Advent of Code 2023";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
zig = pkgs.zig_0_11;
in
{
devShells.default = pkgs.mkShellNoCC {
buildInputs = [
pkgs.aoc-cli
zig
pkgs.zls
];
};
packages.default = pkgs.stdenv.mkDerivation {
name = "aoc23";
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
nativeBuildInputs = [ zig.hook ];
meta = {
description = "Advent of Code 2023";
homepage = "https://git.xeal.me/xeals/aoc23";
license = nixpkgs.lib.licenses.mit;
inherit (zig.meta) platforms;
};
};
});
}