summary refs log tree commit diff
path: root/pkgs/shells/powershell/default.nix
diff options
context:
space:
mode:
authorp3psi <p3psi.boo@gmail.com>2021-09-18 00:35:29 +0800
committerArtturin <Artturin@artturin.com>2021-09-28 21:49:42 +0300
commitc6c2dd3727e1c2d5b173653b4792f4ab4bd21d89 (patch)
tree8e67679ad4dde3ce3ded15f876e60904780d5c1b /pkgs/shells/powershell/default.nix
parentcb3342eec892f912ec2e4ae000b2be4c7ca97f9e (diff)
downloadnixpkgs-c6c2dd3727e1c2d5b173653b4792f4ab4bd21d89.tar
nixpkgs-c6c2dd3727e1c2d5b173653b4792f4ab4bd21d89.tar.gz
nixpkgs-c6c2dd3727e1c2d5b173653b4792f4ab4bd21d89.tar.bz2
nixpkgs-c6c2dd3727e1c2d5b173653b4792f4ab4bd21d89.tar.lz
nixpkgs-c6c2dd3727e1c2d5b173653b4792f4ab4bd21d89.tar.xz
nixpkgs-c6c2dd3727e1c2d5b173653b4792f4ab4bd21d89.tar.zst
nixpkgs-c6c2dd3727e1c2d5b173653b4792f4ab4bd21d89.zip
powershell: patchelf replace liblttng-ust.so.0 to so.1
Diffstat (limited to 'pkgs/shells/powershell/default.nix')
-rw-r--r--pkgs/shells/powershell/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/shells/powershell/default.nix b/pkgs/shells/powershell/default.nix
index 5c082641e9f..4d3038079a8 100644
--- a/pkgs/shells/powershell/default.nix
+++ b/pkgs/shells/powershell/default.nix
@@ -49,6 +49,10 @@ stdenv.mkDerivation rec {
   '' + lib.optionalString (!stdenv.isDarwin && !stdenv.isAarch64) ''
     patchelf --replace-needed libcrypto${ext}.1.0.0 libcrypto${ext}.1.1 $pslibs/libmi.so
     patchelf --replace-needed libssl${ext}.1.0.0 libssl${ext}.1.1 $pslibs/libmi.so
+  '' + lib.optionalString (!stdenv.isDarwin) ''
+    # Remove liblttng-ust from dependencies once
+    # https://github.com/PowerShell/PowerShell/pull/14688 is in a release
+    patchelf --replace-needed liblttng-ust${ext}.0 liblttng-ust${ext}.1 $pslibs/libcoreclrtraceptprovider.so
   '' + ''
 
     mkdir -p $out/bin
@@ -69,7 +73,7 @@ stdenv.mkDerivation rec {
   meta = with lib; {
     description = "Powerful cross-platform (Windows, Linux, and macOS) shell and scripting language based on .NET";
     homepage = "https://github.com/PowerShell/PowerShell";
-    maintainers = with maintainers; [ yrashk srgom ];
+    maintainers = with maintainers; [ yrashk srgom p3psi ];
     platforms = [ "x86_64-darwin" "x86_64-linux" "aarch64-linux"];
     license = with licenses; [ mit ];
   };