2021-02-23 19:21:12 +00:00
|
|
|
{ stdenv, lib
|
|
|
|
, makeWrapper, dpkg, fetchurl, autoPatchelfHook
|
2021-03-14 16:11:48 +00:00
|
|
|
, curl, libkrb5, lttng-ust, libpulseaudio, gtk3, openssl_1_1, icu, webkitgtk, librsvg, gdk-pixbuf, libsoup, glib-networking
|
2021-02-23 19:21:12 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aws-workspaces";
|
2021-04-11 15:02:13 +00:00
|
|
|
version = "3.1.5.1105";
|
2021-02-23 19:21:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
# ref https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu/dists/bionic/main/binary-amd64/Packages
|
|
|
|
urls = [
|
|
|
|
"https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu/dists/bionic/main/binary-amd64/workspacesclient_${version}_amd64.deb"
|
2021-04-11 15:02:13 +00:00
|
|
|
"https://web.archive.org/web/20210411145948/https://d3nt0h4h6pmmc4.cloudfront.net/ubuntu/dists/bionic/main/binary-amd64/workspacesclient_${version}_amd64.deb"
|
2021-02-23 19:21:12 +00:00
|
|
|
];
|
2021-04-11 15:02:13 +00:00
|
|
|
sha256 = "08c8912502d27e61cc2399bf99947e26c1daa1f317d5aa8cc7348d7bf8734e1b";
|
2021-02-23 19:21:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
# Crashes at startup when stripping:
|
|
|
|
# "Failed to create CoreCLR, HRESULT: 0x80004005"
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
stdenv.cc.cc.lib
|
2021-03-14 16:11:48 +00:00
|
|
|
libkrb5
|
2021-02-23 19:21:12 +00:00
|
|
|
curl
|
|
|
|
lttng-ust
|
|
|
|
libpulseaudio
|
|
|
|
gtk3
|
|
|
|
openssl_1_1.out
|
|
|
|
icu
|
|
|
|
webkitgtk
|
|
|
|
librsvg
|
|
|
|
gdk-pixbuf
|
|
|
|
libsoup
|
|
|
|
glib-networking
|
|
|
|
];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
${dpkg}/bin/dpkg -x $src $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv $out/opt/workspacesclient/* $out/bin
|
|
|
|
|
|
|
|
wrapProgram $out/bin/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"
|
|
|
|
'';
|
|
|
|
|
|
|
|
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;
|
|
|
|
platforms = [ "x86_64-linux" ]; # TODO Mac support
|
|
|
|
maintainers = [ maintainers.mausch ];
|
|
|
|
};
|
|
|
|
}
|