3
0
Fork 0
forked from mirrors/nixpkgs

dotnet: fix build on darwin

by not adding linux-only dependency unconditionally
This commit is contained in:
Pavol Rusnak 2021-12-18 16:29:54 +01:00
parent 289cf9d625
commit a999c2b862
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D

View file

@ -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;