mkNugetDeps: provide default for nugetDeps

This commit is contained in:
David McFarland 2024-02-20 23:20:23 -04:00
parent ca181cefee
commit 6b047e397a
2 changed files with 1 additions and 2 deletions

View File

@ -114,7 +114,6 @@ let
then nugetDeps
else mkNugetDeps {
inherit name;
nugetDeps = import nugetDeps;
sourceFile = nugetDeps;
}
else throw "Defining the `nugetDeps` attribute is required, as to lock the NuGet dependencies. This file can be generated by running the `passthru.fetch-deps` script.";

View File

@ -1,5 +1,5 @@
{ linkFarmFromDrvs, fetchurl }:
{ name, nugetDeps, sourceFile ? null }:
{ 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}" }: