uget-integrator: init at 1.0.0

wip/yesman
José Romildo Malaquias 6 years ago
parent f148c5c4a1
commit a7ce93955d
  1. 3
      pkgs/applications/networking/browsers/firefox/wrapper.nix
  2. 39
      pkgs/tools/networking/uget-integrator/default.nix
  3. 2
      pkgs/top-level/all-packages.nix

@ -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 ])

@ -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 ];
};
}

@ -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 { };

Loading…
Cancel
Save