Uses fsharp interactive (fsi) to run fsx script Expose mkNugetSource and mkNugetDeps functions Use them in writers.writeFSharp and buildDotnetModule Add tests
10 lines
310 B
Nix
10 lines
310 B
Nix
{ linkFarmFromDrvs, fetchurl }:
|
|
{ name, nugetDeps }:
|
|
linkFarmFromDrvs "${name}-nuget-deps" (nugetDeps {
|
|
fetchNuGet = { pname, version, sha256 }: fetchurl {
|
|
name = "${pname}-${version}.nupkg";
|
|
url = "https://www.nuget.org/api/v2/package/${pname}/${version}";
|
|
inherit sha256;
|
|
};
|
|
})
|