1
0
aoc23/flake.nix
xeals de3e031dcf
All checks were successful
Build and test / test (push) Successful in 2m59s
Remove CI devShell
2023-11-30 12:48:01 +11:00

30 lines
754 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;
buildZigPackage = import ./nix/build-zig-package.nix {
inherit (pkgs) stdenv;
inherit zig;
};
in
{
devShells.default = pkgs.mkShellNoCC {
buildInputs = [ zig pkgs.zls ];
};
packages.default = buildZigPackage {
name = "aoc23";
src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
};
});
}