2024-10-05 12:38:13 -04:00
|
|
|
{
|
2024-10-09 11:59:13 -04:00
|
|
|
lib,
|
2024-10-05 12:38:13 -04:00
|
|
|
buildDotnetModule,
|
|
|
|
dotnetCorePackages,
|
2024-10-05 17:04:57 -04:00
|
|
|
}: let
|
2024-10-09 11:59:13 -04:00
|
|
|
inherit (lib) any hasSuffix;
|
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-09 11:59:13 -04:00
|
|
|
src = builtins.path {
|
|
|
|
name = "src";
|
|
|
|
path = ./.;
|
|
|
|
filter = file: type:
|
2024-10-05 17:04:57 -04:00
|
|
|
(type != "directory")
|
2024-10-09 11:59:13 -04:00
|
|
|
|| any (s: hasSuffix s file) [".cs" ".csproj"];
|
|
|
|
};
|
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"];
|
|
|
|
}
|