diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-03-26 11:00:20 +0100 |
---|---|---|
committer | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-03-26 11:00:20 +0100 |
commit | 4f39b5c3d9afc059a968dfa5b1de2e629c6e5349 (patch) | |
tree | 8b3c3dd0a2acba00e77e2873ef7fff85a8733351 /pkgs/by-name/aw | |
parent | 73eadf877257fbd358568f3e575d1b9112da37a4 (diff) |
aws-workspaces: 4.6.0.4187 -> 4.7.0.4312
Diffstat (limited to 'pkgs/by-name/aw')
-rw-r--r-- | pkgs/by-name/aw/aws-workspaces/package.nix | 105 |
1 files changed, 105 insertions, 0 deletions
diff --git a/pkgs/by-name/aw/aws-workspaces/package.nix b/pkgs/by-name/aw/aws-workspaces/package.nix new file mode 100644 index 0000000000000..bffc25ca48292 --- /dev/null +++ b/pkgs/by-name/aw/aws-workspaces/package.nix @@ -0,0 +1,105 @@ +{ stdenv +, lib +, makeWrapper +, dpkg +, fetchurl +, autoPatchelfHook +, curl +, libkrb5 +, lttng-ust +, libpulseaudio +, gtk3 +, openssl_1_1 +, icu70 +, webkitgtk +, librsvg +, gdk-pixbuf +, libsoup +, glib-networking +, graphicsmagick_q16 +, libva +, libusb1 +, hiredis +, xcbutil +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "aws-workspaces"; + version = "4.7.0.4312"; + + src = fetchurl { + # Check new version at https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu/dists/focal/main/binary-amd64/Packages + urls = [ + "https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu/dists/focal/main/binary-amd64/workspacesclient_${finalAttrs.version}_amd64.deb" + "https://archive.org/download/workspacesclient_${finalAttrs.version}_amd64/workspacesclient_${finalAttrs.version}_amd64.deb" + ]; + hash = "sha256-G0o5uFnEkiUWmkTMUHlVcidw+2x8e/KmMfVBE7oLXV8="; + }; + + nativeBuildInputs = [ + autoPatchelfHook + makeWrapper + ]; + + # Crashes at startup when stripping: + # "Failed to create CoreCLR, HRESULT: 0x80004005" + dontStrip = true; + + buildInputs = [ + stdenv.cc.cc.lib + libkrb5 + curl + lttng-ust + libpulseaudio + gtk3 + openssl_1_1.out + icu70 + webkitgtk + librsvg + gdk-pixbuf + libsoup + glib-networking + graphicsmagick_q16 + hiredis + libusb1 + libva + xcbutil + ]; + + unpackPhase = '' + ${dpkg}/bin/dpkg -x $src $out + ''; + + preFixup = '' + patchelf --replace-needed liblttng-ust.so.0 liblttng-ust.so $out/lib/libcoreclrtraceptprovider.so + patchelf --replace-needed libGraphicsMagick++-Q16.so.12 libGraphicsMagick++.so.12 $out/usr/lib/x86_64-linux-gnu/pcoip-client/vchan_plugins/libvchan-plugin-clipboard.so + patchelf --replace-needed libhiredis.so.0.14 libhiredis.so $out/lib/libpcoip_core.so + ''; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin $out/lib + mv $out/opt/workspacesclient/* $out/lib + rm -rf $out/opt + + wrapProgram $out/lib/workspacesclient \ + --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath finalAttrs.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 + + runHook postInstall + ''; + + meta = with lib; { + description = "Client for Amazon WorkSpaces, a managed, secure Desktop-as-a-Service (DaaS) solution"; + homepage = "https://clients.amazonworkspaces.com"; + license = licenses.unfree; + mainProgram = "workspacesclient"; + maintainers = with maintainers; [ mausch dylanmtaylor ]; + platforms = [ "x86_64-linux" ]; # TODO Mac support + sourceProvenance = with sourceTypes; [ binaryNativeCode ]; + }; +}) |