uget-integrator: init at 1.0.0

This commit is contained in:
José Romildo Malaquias 2018-04-29 23:41:36 -03:00
parent f148c5c4a1
commit a7ce93955d
3 changed files with 43 additions and 1 deletions

View File

@ -8,7 +8,7 @@
, google_talk_plugin, fribid, gnome3/*.gnome-shell*/
, esteidfirefoxplugin
, vlc_npapi
, browserpass, chrome-gnome-shell
, browserpass, chrome-gnome-shell, uget-integrator
, libudev
, kerberos
}:
@ -64,6 +64,7 @@ let
([ ]
++ lib.optional (cfg.enableBrowserpass or false) browserpass
++ lib.optional (cfg.enableGnomeExtensions or false) chrome-gnome-shell
++ lib.optional (cfg.enableUgetIntegrator or false) uget-integrator
++ extraNativeMessagingHosts
);
libs = (if ffmpegSupport then [ ffmpeg ] else with gst_all; [ gstreamer gst-plugins-base ])

View File

@ -0,0 +1,39 @@
{ stdenv, fetchFromGitHub, uget, python3Packages }:
stdenv.mkDerivation rec {
name = "uget-integrator-${version}";
version = "1.0.0";
src = fetchFromGitHub {
owner = "ugetdm";
repo = "uget-integrator";
rev = "v${version}";
sha256 = "0bfqwbpprxp5sy49p2hqcjdfj7zamnp2hhcnnyccffkn7pghx8pp";
};
nativeBuildInputs = [ python3Packages.wrapPython ];
buildInputs = [ uget python3Packages.python ];
installPhase = ''
for f in conf/com.ugetdm.{chrome,firefox}.json; do
substituteInPlace $f --replace "/usr" "$out"
done
install -D -t $out/bin bin/uget-integrator
install -D -t $out/etc/opt/chrome/native-messaging-hosts conf/com.ugetdm.chrome.json
install -D -t $out/etc/chromium/native-messaging-hosts conf/com.ugetdm.chrome.json
install -D -t $out/etc/opera/native-messaging-hosts conf/com.ugetdm.chrome.json
install -D -t $out/lib/mozilla/native-messaging-hosts conf/com.ugetdm.firefox.json
wrapPythonPrograms
'';
meta = with stdenv.lib; {
description = "Native messaging host to integrate uGet Download Manager with web browsers";
homepage = https://github.com/ugetdm/uget-integrator;
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.romildo ];
};
}

View File

@ -5306,6 +5306,8 @@ with pkgs;
uget = callPackage ../tools/networking/uget { };
uget-integrator = callPackage ../tools/networking/uget-integrator { };
uif2iso = callPackage ../tools/cd-dvd/uif2iso { };
umlet = callPackage ../tools/misc/umlet { };