nixos-configs/devices/homie/modules/home-assistant/netdaemon/package.nix

37 lines
712 B
Nix
Raw Normal View History

2024-10-05 12:38:13 -04:00
{
buildDotnetModule,
dotnetCorePackages,
2024-10-05 17:04:57 -04:00
}: let
2024-10-05 12:38:13 -04:00
pname = "netdaemon-config";
2024-10-05 17:04:57 -04:00
in
buildDotnetModule {
inherit pname;
version = "0.0.0";
2024-10-05 12:38:13 -04:00
2024-10-05 17:04:57 -04:00
src =
builtins.filterSource
(file: type:
(type != "directory")
|| (builtins.all (f: baseNameOf file != f) [
".envrc"
"deps.nix"
"default.nix"
"netdaemon.nix"
"package.nix"
]))
./.;
2024-10-05 12:38:13 -04:00
2024-10-05 17:04:57 -04:00
projectFile = "netdaemon.csproj";
nugetDeps = ./deps.nix;
2024-10-05 12:38:13 -04:00
2024-10-05 17:04:57 -04:00
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
executables = [];
postFixup = ''
cp -r $out/lib/${pname} $lib
'';
outputs = ["out" "lib"];
}