1
0
aoc23/flake.nix

35 lines
908 B
Nix
Raw Normal View History

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