summary refs log tree commit diff
path: root/pkgs/development/compilers/dotnet/build-dotnet.nix
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2021-01-22 18:25:31 +0700
committerBen Siraphob <bensiraphob@gmail.com>2021-01-23 08:57:37 +0700
commitacc5f7b18a60bc9b1024e5e1882bf7362e6492e6 (patch)
tree597dab74ebab3915ddff291ec6aa4913f4010c68 /pkgs/development/compilers/dotnet/build-dotnet.nix
parentbbaff89ceb389e9c21a90eefac60ebc9853144be (diff)
downloadnixpkgs-acc5f7b18a60bc9b1024e5e1882bf7362e6492e6.tar
nixpkgs-acc5f7b18a60bc9b1024e5e1882bf7362e6492e6.tar.gz
nixpkgs-acc5f7b18a60bc9b1024e5e1882bf7362e6492e6.tar.bz2
nixpkgs-acc5f7b18a60bc9b1024e5e1882bf7362e6492e6.tar.lz
nixpkgs-acc5f7b18a60bc9b1024e5e1882bf7362e6492e6.tar.xz
nixpkgs-acc5f7b18a60bc9b1024e5e1882bf7362e6492e6.tar.zst
nixpkgs-acc5f7b18a60bc9b1024e5e1882bf7362e6492e6.zip
pkgs/development/compilers: stdenv.lib -> lib
Diffstat (limited to 'pkgs/development/compilers/dotnet/build-dotnet.nix')
-rw-r--r--pkgs/development/compilers/dotnet/build-dotnet.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/compilers/dotnet/build-dotnet.nix b/pkgs/development/compilers/dotnet/build-dotnet.nix
index 1162a75d0de..56880826a19 100644
--- a/pkgs/development/compilers/dotnet/build-dotnet.nix
+++ b/pkgs/development/compilers/dotnet/build-dotnet.nix
@@ -4,7 +4,7 @@
 }:
 
 assert builtins.elem type [ "aspnetcore" "netcore" "sdk"];
-{ stdenv
+{ lib, stdenv
 , fetchurl
 , libunwind
 , openssl
@@ -41,7 +41,7 @@ let
 in stdenv.mkDerivation rec {
   inherit pname version;
 
-  rpath = stdenv.lib.makeLibraryPath [
+  rpath = lib.makeLibraryPath [
     curl
     icu
     libunwind
@@ -70,7 +70,7 @@ in stdenv.mkDerivation rec {
     runHook postInstall
   '';
 
-  postFixup = stdenv.lib.optionalString stdenv.isLinux ''
+  postFixup = lib.optionalString stdenv.isLinux ''
     patchelf --set-interpreter "${stdenv.cc.bintools.dynamicLinker}" $out/dotnet
     patchelf --set-rpath "${rpath}" $out/dotnet
     find $out -type f -name "*.so" -exec patchelf --set-rpath '$ORIGIN:${rpath}' {} \;
@@ -82,7 +82,7 @@ in stdenv.mkDerivation rec {
     $out/bin/dotnet --info
   '';
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     homepage = "https://dotnet.github.io/";
     description = builtins.getAttr type descriptions;
     platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ];