nixpkgs/pkgs/build-support/dotnet/make-nuget-deps/default.nix
David McFarland 9c16cea2bb buildDotnetModule: allow lockFile path to be set in nugetDeps
This allows fetch-deps to find the lock-file for roslyn.
2023-06-24 17:17:41 -03:00

12 lines
359 B
Nix

{ linkFarmFromDrvs, fetchurl }:
{ name, nugetDeps, 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;
}