uget: 2.0.8 -> 2.0.10

- Update to version 2.0.10
- Use wrapGAppsHook to wrap binaries
- Use gstreamer-1.0
- Add dependence on libappindicator
This commit is contained in:
romildo 2017-09-01 11:21:16 -03:00
parent 86e6e8016d
commit 1f48ad8699
1 changed files with 22 additions and 17 deletions

View File

@ -1,32 +1,37 @@
{ stdenv, fetchurl, pkgconfig, intltool, openssl, curl, libnotify, gstreamer, { stdenv, fetchurl, pkgconfig, intltool, openssl, curl, libnotify,
gst-plugins-base, gst-plugins-good, gnome3, makeWrapper, aria2 ? null }: libappindicator-gtk3, gst_all_1, gnome3, wrapGAppsHook, aria2 ? null
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "uget-${version}"; name = "uget-${version}";
version = "2.0.8"; version = "2.0.10";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/urlget/${name}.tar.gz"; url = "mirror://sourceforge/urlget/${name}.tar.gz";
sha256 = "0919cf7lfk1djdl003cahqjvafdliv7v2l8r5wg95n4isqggdk75"; sha256 = "1zldsiy83xxpm8jdh1i9h7zrh8ak52srgy38fiyszysfapl8nx8a";
}; };
nativeBuildInputs = [ pkgconfig intltool makeWrapper ]; nativeBuildInputs = [
pkgconfig
intltool
wrapGAppsHook
];
buildInputs = [ buildInputs = [
openssl curl libnotify gstreamer gst-plugins-base gst-plugins-good openssl
gnome3.gtk (stdenv.lib.getLib gnome3.dconf) curl
libnotify
libappindicator-gtk3
gnome3.gtk
(stdenv.lib.getLib gnome3.dconf)
] ]
++ (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good ])
++ (stdenv.lib.optional (aria2 != null) aria2); ++ (stdenv.lib.optional (aria2 != null) aria2);
enableParallelBuilding = true; enableParallelBuilding = true;
preFixup = '' preFixup = stdenv.lib.optionalString (aria2 != null)
wrapProgram $out/bin/uget-gtk \ ''gappsWrapperArgs+=(--suffix PATH : "${aria2}/bin")'';
${stdenv.lib.optionalString (aria2 != null) ''--suffix PATH : "${aria2}/bin"''} \
--prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" \
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib gnome3.dconf}/lib/gio/modules"
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Download manager using gtk+ and libcurl"; description = "Download manager using gtk+ and libcurl";
@ -37,9 +42,9 @@ stdenv.mkDerivation rec {
thinking that it "might be too powerful" because remember power is good thinking that it "might be too powerful" because remember power is good
and lightweight power is uGet! and lightweight power is uGet!
''; '';
license = licenses.lgpl21;
homepage = http://www.ugetdm.com; homepage = http://www.ugetdm.com;
maintainers = with maintainers; [ romildo ]; license = licenses.lgpl21;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ romildo ];
}; };
} }