nixos-configs/devices/homie/modules/home-assistant/netdaemon/package.nix
matt1432 7855e8ecdd
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(netd): clean up package
2024-10-05 17:04:57 -04:00

36 lines
712 B
Nix

{
buildDotnetModule,
dotnetCorePackages,
}: let
pname = "netdaemon-config";
in
buildDotnetModule {
inherit pname;
version = "0.0.0";
src =
builtins.filterSource
(file: type:
(type != "directory")
|| (builtins.all (f: baseNameOf file != f) [
".envrc"
"deps.nix"
"default.nix"
"netdaemon.nix"
"package.nix"
]))
./.;
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"];
}