2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, intltool, openssl, curl, libnotify,
|
2020-04-24 23:36:52 +00:00
|
|
|
libappindicator-gtk3, gst_all_1, gtk3, dconf, wrapGAppsHook, aria2 ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "uget";
|
|
|
|
version = "2.2.3-1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/urlget/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0jchvgkkphhwp2z7vd4axxr9ns8b6vqc22b2z8a906qm8916wd8i";
|
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
# Apply upstream fix for -fno-common toolchains.
|
|
|
|
postPatch = ''
|
|
|
|
# TODO: remove the replace once upstream fix is released:
|
|
|
|
# https://sourceforge.net/p/urlget/uget2/ci/14890943c52e0a5cd2a87d8a1c51cbffebee7cf9/
|
|
|
|
substituteInPlace ui-gtk/UgtkBanner.h --replace "} banner;" "};"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
intltool
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
curl
|
|
|
|
libnotify
|
|
|
|
libappindicator-gtk3
|
|
|
|
gtk3
|
2021-01-15 22:18:51 +00:00
|
|
|
(lib.getLib dconf)
|
2020-04-24 23:36:52 +00:00
|
|
|
]
|
|
|
|
++ (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good ])
|
2021-01-15 22:18:51 +00:00
|
|
|
++ (lib.optional (aria2 != null) aria2);
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
preFixup = lib.optionalString (aria2 != null)
|
2020-04-24 23:36:52 +00:00
|
|
|
''gappsWrapperArgs+=(--suffix PATH : "${aria2}/bin")'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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!
|
|
|
|
'';
|
|
|
|
homepage = "http://www.ugetdm.com";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ romildo ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "uget-gtk";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|