From f18dd09fc2e0dfac0418f40f4c56fbb97d0ef5c4 Mon Sep 17 00:00:00 2001 From: Mauricio Scheffer Date: Tue, 21 Sep 2021 22:37:01 +0100 Subject: [PATCH] aws-workspaces: only leave wrapper script in bin --- .../networking/remote/aws-workspaces/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/networking/remote/aws-workspaces/default.nix b/pkgs/applications/networking/remote/aws-workspaces/default.nix index 4e00cb9bdb42..9cd634f73c50 100644 --- a/pkgs/applications/networking/remote/aws-workspaces/default.nix +++ b/pkgs/applications/networking/remote/aws-workspaces/default.nix @@ -46,17 +46,20 @@ stdenv.mkDerivation rec { ''; preFixup = '' - patchelf --replace-needed liblttng-ust.so.0 liblttng-ust.so $out/bin/libcoreclrtraceptprovider.so + patchelf --replace-needed liblttng-ust.so.0 liblttng-ust.so $out/lib/libcoreclrtraceptprovider.so ''; installPhase = '' - mkdir -p $out/bin - mv $out/opt/workspacesclient/* $out/bin + mkdir -p $out/bin $out/lib + mv $out/opt/workspacesclient/* $out/lib + rm -rf $out/opt - wrapProgram $out/bin/workspacesclient \ + wrapProgram $out/lib/workspacesclient \ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath buildInputs}" \ --set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" \ --set GIO_EXTRA_MODULES "${glib-networking.out}/lib/gio/modules" + + mv $out/lib/workspacesclient $out/bin ''; meta = with lib; {