nixos-configs/devices/homie/modules/home-assistant/netdaemon/package.nix
matt1432 cf30e1c21f
All checks were successful
Discord / discord commits (push) Has been skipped
fix(netd): handle source filter properly
2024-10-09 11:59:13 -04:00

33 lines
657 B
Nix

{
lib,
buildDotnetModule,
dotnetCorePackages,
}: 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"];
};
projectFile = "netdaemon.csproj";
nugetDeps = ./deps.nix;
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
executables = [];
postFixup = ''
cp -r $out/lib/${pname} $lib
'';
outputs = ["out" "lib"];
}