nixos-configs/devices/homie/modules/home-assistant/netdaemon/package.nix
matt1432 56eeb7745c
All checks were successful
Discord / discord commits (push) Has been skipped
fix(netd): use gitignoreSource to get src
2024-10-09 15:13:56 -04:00

33 lines
587 B
Nix

{
buildDotnetModule,
dotnetCorePackages,
nix-gitignore,
}: let
pname = "netdaemon-config";
in
buildDotnetModule {
inherit pname;
version = "0.0.0";
src =
nix-gitignore.gitignoreSource [
"*.nix"
".direnv"
".envrc"
"images"
]
./.;
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"];
}