core/pkgs/build-support/dotnet/make-nuget-deps/default.nix

13 lines
379 B
Nix
Raw Permalink Normal View History

2024-05-02 00:46:19 +00:00
{ linkFarmFromDrvs, fetchurl }:
{ name, nugetDeps ? import sourceFile, sourceFile ? null }:
linkFarmFromDrvs "${name}-nuget-deps" (nugetDeps {
fetchNuGet = { pname, version, sha256
, url ? "https://www.nuget.org/api/v2/package/${pname}/${version}" }:
fetchurl {
name = "${pname}.${version}.nupkg";
inherit url sha256;
};
}) // {
inherit sourceFile;
}