2016-03-12 14:05:49 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, intltool, openssl, curl, libnotify, gstreamer,
|
2017-02-26 21:25:29 +01:00
|
|
|
gst-plugins-base, gst-plugins-good, gnome3, makeWrapper, aria2 ? null }:
|
2016-03-12 14:05:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "uget-${version}";
|
2016-06-01 13:26:40 +02:00
|
|
|
version = "2.0.8";
|
2016-03-12 14:05:49 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/urlget/${name}.tar.gz";
|
2016-06-01 13:26:40 +02:00
|
|
|
sha256 = "0919cf7lfk1djdl003cahqjvafdliv7v2l8r5wg95n4isqggdk75";
|
2016-03-12 14:05:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig intltool makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs = [
|
2017-02-26 21:25:29 +01:00
|
|
|
openssl curl libnotify gstreamer gst-plugins-base gst-plugins-good
|
2016-03-12 14:05:49 +01:00
|
|
|
gnome3.gtk gnome3.dconf
|
|
|
|
]
|
|
|
|
++ (stdenv.lib.optional (aria2 != null) aria2);
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
wrapProgram $out/bin/uget-gtk \
|
|
|
|
${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 : "${gnome3.dconf}/lib/gio/modules"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Download manager using gtk+ and libcurl";
|
|
|
|
longDescription = ''
|
|
|
|
uGet is a VERY Powerful download manager application with a large
|
|
|
|
inventory of features but is still very light-weight and low on
|
|
|
|
resources, so don't let the impressive list of features scare you into
|
|
|
|
thinking that it "might be too powerful" because remember power is good
|
|
|
|
and lightweight power is uGet!
|
|
|
|
'';
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
homepage = http://www.ugetdm.com;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|