From 1649a861eb52912003ca6ba3ad0cbfa06bedd11b Mon Sep 17 00:00:00 2001 From: PoisonPhang <17688291+PoisonPhang@users.noreply.github.com> Date: Wed, 28 Aug 2024 11:47:51 -0500 Subject: [PATCH] feat(nix): source filtering --- explorer.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/explorer.nix b/explorer.nix index 467bcc1e3f..96c5f93560 100644 --- a/explorer.nix +++ b/explorer.nix @@ -11,7 +11,10 @@ pkgs.stdenv.mkDerivation { pname = "pingpub-explorer"; version = "0.1.0"; - src = ./.; + src = builtins.filterSource + (path: type: + type != "directory" || baseNameOf path != ".github") + (pkgs.lib.cleanSource ./.); nativeBuildInputs = with pkgs; [ tree