2021-02-18 01:07:50 +01:00
|
|
|
{ lib, stdenv, fetchurl, dpkg, wrapGAppsHook, autoPatchelfHook
|
2021-06-10 04:57:09 +02:00
|
|
|
, alsa-lib, atk, at-spi2-atk, at-spi2-core, cairo, cups, dbus, expat, fontconfig, freetype
|
2020-04-16 23:34:00 +02:00
|
|
|
, 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";
|
2021-05-05 23:44:25 +02:00
|
|
|
version = "5.5.0.11";
|
2020-04-16 23:34:00 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-05 23:44:25 +02:00
|
|
|
url = "https://upwork-usw2-desktopapp.upwork.com/binaries/v5_5_0_11_61df9c99b6df4e7b/${pname}_${version}_amd64.deb";
|
|
|
|
sha256 = "db83d5fb1b5383992c6156284f6f3cd3a6b23f727ce324ba90c82817553fb4f7";
|
2020-04-16 23:34:00 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2020-10-13 01:26:26 +02:00
|
|
|
nativeBuildInputs = [
|
2020-04-16 23:34:00 +02:00
|
|
|
dpkg
|
|
|
|
wrapGAppsHook
|
|
|
|
autoPatchelfHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libcxx systemd libpulseaudio
|
2021-06-10 04:57:09 +02:00
|
|
|
stdenv.cc.cc alsa-lib atk at-spi2-atk at-spi2-core cairo cups dbus expat fontconfig freetype
|
2020-04-16 23:34:00 +02:00
|
|
|
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 06:42:41 +01:00
|
|
|
libPath = lib.makeLibraryPath buildInputs;
|
2020-04-16 23:34:00 +02:00
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
dpkg-deb -x ${src} ./
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-02-18 01:07:50 +01:00
|
|
|
runHook preInstall
|
2020-04-16 23:34:00 +02:00
|
|
|
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-02-18 01:07:50 +01:00
|
|
|
runHook postInstall
|
2020-04-16 23:34:00 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-16 23:34:00 +02:00
|
|
|
description = "Online freelancing platform desktop application for time tracking";
|
|
|
|
homepage = "https://www.upwork.com/ab/downloads/";
|
|
|
|
license = licenses.unfree;
|
2020-10-13 01:27:16 +02:00
|
|
|
maintainers = with maintainers; [ zakkor wolfangaukang ];
|
2020-04-16 23:34:00 +02:00
|
|
|
};
|
2020-10-13 01:26:26 +02:00
|
|
|
}
|