Use gitignoreSource to clean src
All checks were successful
Build and test / test (push) Successful in 3m3s
All checks were successful
Build and test / test (push) Successful in 3m3s
This commit is contained in:
parent
2cef1b682c
commit
2d65118f53
@ -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 [ ] ./.;
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user