1
0

Use gitignoreSource to clean src
All checks were successful
Build and test / test (push) Successful in 3m3s

This commit is contained in:
xeals 2023-11-30 12:43:56 +11:00
parent 2cef1b682c
commit 2d65118f53
Signed by: xeals
SSH Key Fingerprint: SHA256:pRv+8swQDA+/LuZ7NHj9m006BbKexlNK62OUA01ZZBc

View File

@ -6,10 +6,9 @@
flake-utils.url = "github:numtide/flake-utils"; flake-utils.url = "github:numtide/flake-utils";
}; };
outputs = { self, nixpkgs, flake-utils }: outputs = { nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system: flake-utils.lib.eachDefaultSystem (system:
let let
inherit (nixpkgs) lib;
pkgs = import nixpkgs { inherit system; }; pkgs = import nixpkgs { inherit system; };
zig = pkgs.zig_0_11; zig = pkgs.zig_0_11;
buildZigPackage = import ./nix/build-zig-package.nix { buildZigPackage = import ./nix/build-zig-package.nix {
@ -29,7 +28,7 @@
packages.default = buildZigPackage { packages.default = buildZigPackage {
name = "aoc23"; name = "aoc23";
src = lib.cleanSource ./.; src = pkgs.nix-gitignore.gitignoreSource [ ] ./.;
}; };
}); });
} }