2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, dpkg, wrapGAppsHook, autoPatchelfHook, writeShellScript
|
2020-04-16 21:34:00 +00:00
|
|
|
, alsaLib, atk, at-spi2-atk, at-spi2-core, cairo, cups, dbus, expat, fontconfig, freetype
|
|
|
|
, gdk-pixbuf, glib, gtk3, libnotify, libX11, libXcomposite, libXcursor, libXdamage, libuuid
|
|
|
|
, libXext, libXfixes, libXi, libXrandr, libXrender, libXtst, nspr, nss, libxcb
|
|
|
|
, pango, systemd, libXScrnSaver, libcxx, libpulseaudio }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "upwork";
|
2020-11-17 02:52:43 +00:00
|
|
|
version = "5.4.9.6";
|
2020-04-16 21:34:00 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-11-17 02:52:43 +00:00
|
|
|
url = "https://upwork-usw2-desktopapp.upwork.com/binaries/v5_4_9_6_2565cdd0547940a2/${pname}_${version}_amd64.deb";
|
|
|
|
sha256 = "ff6246b3b4a1ed79cc9bca2934652fefb40bdac4b7e95997f3a46e354ce52456";
|
2020-04-16 21:34:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2020-10-12 23:26:26 +00:00
|
|
|
nativeBuildInputs = [
|
2020-04-16 21:34:00 +00:00
|
|
|
dpkg
|
|
|
|
wrapGAppsHook
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libcxx systemd libpulseaudio
|
|
|
|
stdenv.cc.cc alsaLib atk at-spi2-atk at-spi2-core cairo cups dbus expat fontconfig freetype
|
|
|
|
gdk-pixbuf glib gtk3 libnotify libX11 libXcomposite libuuid
|
|
|
|
libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender
|
|
|
|
libXtst nspr nss libxcb pango systemd libXScrnSaver
|
|
|
|
];
|
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
libPath = lib.makeLibraryPath buildInputs;
|
2020-04-16 21:34:00 +00:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
dpkg-deb -x ${src} ./
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mv usr $out
|
|
|
|
mv opt $out
|
|
|
|
sed -e "s|/opt/Upwork|$out/bin|g" -i $out/share/applications/upwork.desktop
|
|
|
|
|
|
|
|
makeWrapper $out/opt/Upwork/upwork \
|
|
|
|
$out/bin/upwork \
|
|
|
|
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
|
|
|
|
--prefix LD_LIBRARY_PATH : ${libPath}
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-16 21:34:00 +00:00
|
|
|
description = "Online freelancing platform desktop application for time tracking";
|
|
|
|
homepage = "https://www.upwork.com/ab/downloads/";
|
|
|
|
license = licenses.unfree;
|
2020-10-12 23:27:16 +00:00
|
|
|
maintainers = with maintainers; [ zakkor wolfangaukang ];
|
2020-04-16 21:34:00 +00:00
|
|
|
};
|
2020-10-12 23:26:26 +00:00
|
|
|
}
|