@@ -15,13 +15,19 @@ assert builtins.elem type [ "aspnetcore" "netcore" "sdk"];
1515}:
1616
1717let
18− pname = if type == "aspnetcore" then "aspnetcore-runtime" else if type == "netcore" then "dotnet-runtime" else "dotnet-sdk";
18+ pname = if type == "aspnetcore" then
19+ "aspnetcore-runtime"
20+ else if type == "netcore" then
21+ "dotnet-runtime"
22+ else
23+ "dotnet-sdk";
1924 platform = if stdenv.isDarwin then "osx" else "linux";
2025 suffix = {
21− x86_64-linux = "x64";
26+ x86_64-linux = "x64";
2227 aarch64-linux = "arm64";
2328 x86_64-darwin = "x64";
24− }."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
29+ }."${stdenv.hostPlatform.system}" or (throw
30+ "Unsupported system: ${stdenv.hostPlatform.system}");
2531 urls = {
2632 aspnetcore = "https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/${version}/${pname}-${version}-${platform}-${suffix}.tar.gz";
2733 netcore = "https://dotnetcli.azureedge.net/dotnet/Runtime/${version}/${pname}-${version}-${platform}-${suffix}.tar.gz";
@@ -35,11 +41,20 @@ let
3541in stdenv.mkDerivation rec {
3642 inherit pname version;
3743
38− rpath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc libunwind libuuid icu openssl zlib curl ];
44+ rpath = stdenv.lib.makeLibraryPath [
45+ curl
46+ icu
47+ libunwind
48+ libuuid
49+ openssl
50+ stdenv.cc.cc
51+ zlib
52+ ];
3953
4054 src = fetchurl {
4155 url = builtins.getAttr type urls;
42− sha512 = sha512."${stdenv.hostPlatform.system}" or (throw "Missing hash for host system: ${stdenv.hostPlatform.system}");
56+ sha512 = sha512."${stdenv.hostPlatform.system}" or (throw
57+ "Missing hash for host system: ${stdenv.hostPlatform.system}");
4358 };
4459
4560 sourceRoot = ".";