From 2d65118f5382444848757b27095444df40cea27d Mon Sep 17 00:00:00 2001 From: xeals Date: Thu, 30 Nov 2023 12:43:56 +1100 Subject: [PATCH] Use gitignoreSource to clean src --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 549405c..69f1de9 100644 --- a/flake.nix +++ b/flake.nix @@ -6,10 +6,9 @@ flake-utils.url = "github:numtide/flake-utils"; }; - outputs = { self, nixpkgs, flake-utils }: + outputs = { nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: let - inherit (nixpkgs) lib; pkgs = import nixpkgs { inherit system; }; zig = pkgs.zig_0_11; buildZigPackage = import ./nix/build-zig-package.nix { @@ -29,7 +28,7 @@ packages.default = buildZigPackage { name = "aoc23"; - src = lib.cleanSource ./.; + src = pkgs.nix-gitignore.gitignoreSource [ ] ./.; }; }); }