diff options
author | Zakkor <edward.partenie@gmail.com> | 2020-04-17 00:34:00 +0300 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-04-16 14:45:30 -0700 |
commit | 13c58fbbf482cf74f30d98c999325af0847dcb69 (patch) | |
tree | 8ae7006cdad8785dc61d2a81a85c18f94638edad /pkgs/applications/misc | |
parent | 37d03dd470c60e2f1e285475538cb70868dd861d (diff) | |
download | nixlib-13c58fbbf482cf74f30d98c999325af0847dcb69.tar nixlib-13c58fbbf482cf74f30d98c999325af0847dcb69.tar.gz nixlib-13c58fbbf482cf74f30d98c999325af0847dcb69.tar.bz2 nixlib-13c58fbbf482cf74f30d98c999325af0847dcb69.tar.lz nixlib-13c58fbbf482cf74f30d98c999325af0847dcb69.tar.xz nixlib-13c58fbbf482cf74f30d98c999325af0847dcb69.tar.zst nixlib-13c58fbbf482cf74f30d98c999325af0847dcb69.zip |
upwork: init at 5.3.3-883
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r-- | pkgs/applications/misc/upwork/default.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/applications/misc/upwork/default.nix b/pkgs/applications/misc/upwork/default.nix new file mode 100644 index 000000000000..3757c8ce3bb4 --- /dev/null +++ b/pkgs/applications/misc/upwork/default.nix @@ -0,0 +1,55 @@ +{ stdenv, fetchurl, dpkg, wrapGAppsHook, autoPatchelfHook, writeShellScript +, 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"; + version = "5.3.3-883"; + + src = fetchurl { + url = "https://updates-desktopapp.upwork.com/binaries/v5_3_3_883_1f817bc1fefd44e7/upwork_5.3.3.883_amd64.deb"; + sha256 = "072zns79w4h46bvbj23rvr8i12sf2l378ry0z3hchwcimkrph9wx"; + }; + + dontWrapGApps = true; + + nativeBuildInputs = [ + 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 + ]; + + libPath = stdenv.lib.makeLibraryPath buildInputs; + + 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} + ''; + + meta = with stdenv.lib; { + description = "Online freelancing platform desktop application for time tracking"; + homepage = "https://www.upwork.com/ab/downloads/"; + license = licenses.unfree; + maintainers = with maintainers; [ zakkor ]; + }; +} \ No newline at end of file |