From a999c2b862cde8e168543dc5c942766619d56b4a Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Sat, 18 Dec 2021 16:29:54 +0100 Subject: [PATCH] dotnet: fix build on darwin by not adding linux-only dependency unconditionally --- pkgs/development/compilers/dotnet/build-dotnet.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/dotnet/build-dotnet.nix b/pkgs/development/compilers/dotnet/build-dotnet.nix index 3ebe6ca40dd4..21cc6c8227cd 100644 --- a/pkgs/development/compilers/dotnet/build-dotnet.nix +++ b/pkgs/development/compilers/dotnet/build-dotnet.nix @@ -4,7 +4,8 @@ }: assert builtins.elem type [ "aspnetcore" "runtime" "sdk"]; -{ lib, stdenv +{ lib +, stdenv , fetchurl , libunwind , openssl @@ -42,9 +43,8 @@ in stdenv.mkDerivation rec { inherit pname version; # Some of these dependencies are `dlopen()`ed. - rpath = lib.makeLibraryPath [ + rpath = lib.makeLibraryPath ([ stdenv.cc.cc - lttng-ust_2_12 zlib curl @@ -52,7 +52,9 @@ in stdenv.mkDerivation rec { libunwind libuuid openssl - ]; + ] ++ lib.optionals stdenv.isLinux [ + lttng-ust_2_12 + ]); src = fetchurl { url = builtins.getAttr type urls;