summary refs log tree commit diff
path: root/pkgs/development/compilers/dotnet/build-dotnet.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2021-04-05 16:01:43 +0000
committerNikolay Amiantov <ab@fmap.me>2021-12-15 14:23:54 +0300
commit59a6898da56bd6e0c6071749d0746c9ab7ba5942 (patch)
tree300dc0ef3de7a0ed95992a4cea17275b3cac7e01 /pkgs/development/compilers/dotnet/build-dotnet.nix
parentc07e19fc00a7174c5bca2c2aa431d8d7ea920997 (diff)
downloadnixpkgs-59a6898da56bd6e0c6071749d0746c9ab7ba5942.tar
nixpkgs-59a6898da56bd6e0c6071749d0746c9ab7ba5942.tar.gz
nixpkgs-59a6898da56bd6e0c6071749d0746c9ab7ba5942.tar.bz2
nixpkgs-59a6898da56bd6e0c6071749d0746c9ab7ba5942.tar.lz
nixpkgs-59a6898da56bd6e0c6071749d0746c9ab7ba5942.tar.xz
nixpkgs-59a6898da56bd6e0c6071749d0746c9ab7ba5942.tar.zst
nixpkgs-59a6898da56bd6e0c6071749d0746c9ab7ba5942.zip
dotnet: fix tracing and createdump
Diffstat (limited to 'pkgs/development/compilers/dotnet/build-dotnet.nix')
-rw-r--r--pkgs/development/compilers/dotnet/build-dotnet.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/compilers/dotnet/build-dotnet.nix b/pkgs/development/compilers/dotnet/build-dotnet.nix
index 3080873bb96..3ebe6ca40dd 100644
--- a/pkgs/development/compilers/dotnet/build-dotnet.nix
+++ b/pkgs/development/compilers/dotnet/build-dotnet.nix
@@ -12,6 +12,7 @@ assert builtins.elem type [ "aspnetcore" "runtime" "sdk"];
 , libuuid
 , zlib
 , curl
+, lttng-ust_2_12
 }:
 
 let
@@ -40,14 +41,17 @@ let
 in stdenv.mkDerivation rec {
   inherit pname version;
 
+  # Some of these dependencies are `dlopen()`ed.
   rpath = lib.makeLibraryPath [
+    stdenv.cc.cc
+    lttng-ust_2_12
+    zlib
+
     curl
     icu
     libunwind
     libuuid
     openssl
-    stdenv.cc.cc
-    zlib
   ];
 
   src = fetchurl {
@@ -73,7 +77,7 @@ in stdenv.mkDerivation rec {
     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}' {} \;
-    find $out -type f -name "apphost" -exec patchelf --set-interpreter "${stdenv.cc.bintools.dynamicLinker}" --set-rpath '$ORIGIN:${rpath}' {} \;
+    find $out -type f \( -name "apphost" -or -name "createdump" \) -exec patchelf --set-interpreter "${stdenv.cc.bintools.dynamicLinker}" --set-rpath '$ORIGIN:${rpath}' {} \;
   '';
 
   doInstallCheck = true;