1 { lib, stdenv, requireFile, dpkg, wrapGAppsHook, autoPatchelfHook
2 , alsa-lib, atk, at-spi2-atk, at-spi2-core, cairo, cups, dbus, expat, fontconfig, freetype
3 , gdk-pixbuf, glib, gtk3, libcxx, libdrm, libnotify, libpulseaudio, libuuid, libX11, libxcb
4 , libXcomposite, libXcursor, libXdamage, libXext, libXfixes, libXi, libXrandr, libXrender
5 , libXScrnSaver, libXtst, mesa, nspr, nss, openssl, pango, systemd }:
7 stdenv.mkDerivation rec {
12 name = "${pname}_${version}_amd64.deb";
13 url = "https://www.upwork.com/ab/downloads/os/linux/";
14 sha256 = "sha256-MU0usTAfNNMN8OYmS6dWU6Xk2o5dg5J0V7OQiv3dLug=";
24 libcxx systemd libpulseaudio
25 stdenv.cc.cc alsa-lib atk at-spi2-atk at-spi2-core cairo cups
26 dbus expat fontconfig freetype gdk-pixbuf glib gtk3 libdrm libnotify
27 libuuid libX11 libxcb libXcomposite libXcursor libXdamage libXext libXfixes
28 libXi libXrandr libXrender libXScrnSaver libXtst mesa nspr nss pango systemd
31 libPath = lib.makeLibraryPath buildInputs;
45 # Now it requires lib{ssl,crypto}.so.1.0.0. Fix based on Spotify pkg.
46 # https://github.com/NixOS/nixpkgs/blob/efea022d6fe0da84aa6613d4ddeafb80de713457/pkgs/applications/audio/spotify/default.nix#L129
47 mkdir -p $out/lib/upwork
48 ln -s ${lib.getLib openssl}/lib/libssl.so $out/lib/upwork/libssl.so.1.0.0
49 ln -s ${lib.getLib openssl}/lib/libcrypto.so $out/lib/upwork/libcrypto.so.1.0.0
51 sed -e "s|/opt/Upwork|$out/bin|g" -i $out/share/applications/upwork.desktop
52 makeWrapper $out/opt/Upwork/upwork \
54 --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
55 --prefix LD_LIBRARY_PATH : ${libPath}
61 description = "Online freelancing platform desktop application for time tracking";
62 homepage = "https://www.upwork.com/ab/downloads/";
63 sourceProvenance = with sourceTypes; [ binaryNativeCode ];
64 license = licenses.unfree;
65 platforms = [ "x86_64-linux" ];
66 maintainers = with maintainers; [ zakkor wolfangaukang ];