From 6691d52facbffa189ce5747e0f98beca9f55ffb3 Mon Sep 17 00:00:00 2001 From: Quentin Dufour <quentin@deuxfleurs.fr> Date: Thu, 4 May 2023 16:05:11 +0200 Subject: [PATCH] filter sources to avoid rebuild on each test --- flake.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a10108f..6d49604 100644 --- a/flake.nix +++ b/flake.nix @@ -53,7 +53,11 @@ albatrosProject = (pkgs.buildGoModule rec { pname = "albatros-go-module"; version = albaVersion; - src = ./.; + src = builtins.path { + path = ./.; + name = "albatros-source"; + filter = (path: type: type == "directory" || (builtins.match ".*\\.(go|sum|mod)" path) != null); + }; CGO_ENABLED = 0; vendorSha256 = "sha256-KYjXb882jWLFO6zilQXlrZorL9tw/+6njQNkB6E9Er4="; dontCheck=true;