From 56eeb7745c7575fdf869fbaa454d588eb4d9e907 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 9 Oct 2024 15:13:56 -0400 Subject: [PATCH] fix(netd): use gitignoreSource to get src --- .../home-assistant/netdaemon/package.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/devices/homie/modules/home-assistant/netdaemon/package.nix b/devices/homie/modules/home-assistant/netdaemon/package.nix index 636a7ea8..a1f7b475 100644 --- a/devices/homie/modules/home-assistant/netdaemon/package.nix +++ b/devices/homie/modules/home-assistant/netdaemon/package.nix @@ -1,22 +1,22 @@ { - lib, buildDotnetModule, dotnetCorePackages, + nix-gitignore, }: let - inherit (lib) any hasSuffix; pname = "netdaemon-config"; in buildDotnetModule { inherit pname; version = "0.0.0"; - src = builtins.path { - name = "src"; - path = ./.; - filter = file: type: - (type != "directory") - || any (s: hasSuffix s file) [".cs" ".csproj"]; - }; + src = + nix-gitignore.gitignoreSource [ + "*.nix" + ".direnv" + ".envrc" + "images" + ] + ./.; projectFile = "netdaemon.csproj"; nugetDeps = ./deps.nix;