2022-03-05 16:20:37 +00:00
|
|
|
{ linkFarmFromDrvs, fetchurl }:
|
2024-04-21 15:54:59 +00:00
|
|
|
{ name, nugetDeps ? import sourceFile, sourceFile ? null }:
|
2022-06-26 10:26:21 +00:00
|
|
|
linkFarmFromDrvs "${name}-nuget-deps" (nugetDeps {
|
|
|
|
fetchNuGet = { pname, version, sha256
|
|
|
|
, url ? "https://www.nuget.org/api/v2/package/${pname}/${version}" }:
|
|
|
|
fetchurl {
|
2022-09-22 12:36:57 +00:00
|
|
|
name = "${pname}.${version}.nupkg";
|
2022-06-26 10:26:21 +00:00
|
|
|
inherit url sha256;
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
}) // {
|
|
|
|
inherit sourceFile;
|
|
|
|
}
|