summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-07-16 14:23:49 -0700
committerJon <jonringer@users.noreply.github.com>2020-07-19 17:42:35 -0700
commit8dd95638ad2e8ca2ffdf7efb5a5930b25d7aeb15 (patch)
tree0c199674478956c9b0e5674c451f72d150457b84
parenteea3dedaf462ebb32775167f4206a5b4e6f9e673 (diff)
downloadnixpkgs-8dd95638ad2e8ca2ffdf7efb5a5930b25d7aeb15.tar
nixpkgs-8dd95638ad2e8ca2ffdf7efb5a5930b25d7aeb15.tar.gz
nixpkgs-8dd95638ad2e8ca2ffdf7efb5a5930b25d7aeb15.tar.bz2
nixpkgs-8dd95638ad2e8ca2ffdf7efb5a5930b25d7aeb15.tar.lz
nixpkgs-8dd95638ad2e8ca2ffdf7efb5a5930b25d7aeb15.tar.xz
nixpkgs-8dd95638ad2e8ca2ffdf7efb5a5930b25d7aeb15.tar.zst
nixpkgs-8dd95638ad2e8ca2ffdf7efb5a5930b25d7aeb15.zip
dotnetCorePackages: build-dotnet: lint
-rw-r--r--pkgs/development/compilers/dotnet/build-dotnet.nix25
1 files changed, 20 insertions, 5 deletions
diff --git a/pkgs/development/compilers/dotnet/build-dotnet.nix b/pkgs/development/compilers/dotnet/build-dotnet.nix
index 1b3d7f10f21..1162a75d0de 100644
--- a/pkgs/development/compilers/dotnet/build-dotnet.nix
+++ b/pkgs/development/compilers/dotnet/build-dotnet.nix
@@ -15,13 +15,19 @@ assert builtins.elem type [ "aspnetcore" "netcore" "sdk"];
 }:
 
 let
-  pname = if type == "aspnetcore" then "aspnetcore-runtime" else if type == "netcore" then "dotnet-runtime" else "dotnet-sdk";
+  pname = if type == "aspnetcore" then
+    "aspnetcore-runtime"
+  else if type == "netcore" then
+    "dotnet-runtime"
+  else
+    "dotnet-sdk";
   platform = if stdenv.isDarwin then "osx" else "linux";
   suffix = {
-    x86_64-linux  = "x64";
+    x86_64-linux = "x64";
     aarch64-linux = "arm64";
     x86_64-darwin = "x64";
-  }."${stdenv.hostPlatform.system}" or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
+  }."${stdenv.hostPlatform.system}" or (throw
+    "Unsupported system: ${stdenv.hostPlatform.system}");
   urls = {
     aspnetcore = "https://dotnetcli.azureedge.net/dotnet/aspnetcore/Runtime/${version}/${pname}-${version}-${platform}-${suffix}.tar.gz";
     netcore = "https://dotnetcli.azureedge.net/dotnet/Runtime/${version}/${pname}-${version}-${platform}-${suffix}.tar.gz";
@@ -35,11 +41,20 @@ let
 in stdenv.mkDerivation rec {
   inherit pname version;
 
-  rpath = stdenv.lib.makeLibraryPath [ stdenv.cc.cc libunwind libuuid icu openssl zlib curl ];
+  rpath = stdenv.lib.makeLibraryPath [
+    curl
+    icu
+    libunwind
+    libuuid
+    openssl
+    stdenv.cc.cc
+    zlib
+  ];
 
   src = fetchurl {
     url = builtins.getAttr type urls;
-    sha512 = sha512."${stdenv.hostPlatform.system}"  or (throw "Missing hash for host system: ${stdenv.hostPlatform.system}");
+    sha512 = sha512."${stdenv.hostPlatform.system}" or (throw
+      "Missing hash for host system: ${stdenv.hostPlatform.system}");
   };
 
   sourceRoot = ".";