1 { lib, stdenv, fetchFromGitHub, uget, python3Packages }:
3 stdenv.mkDerivation rec {
4 pname = "uget-integrator";
7 src = fetchFromGitHub {
9 repo = "uget-integrator";
11 sha256 = "0bfqwbpprxp5sy49p2hqcjdfj7zamnp2hhcnnyccffkn7pghx8pp";
14 nativeBuildInputs = [ python3Packages.wrapPython ];
16 buildInputs = [ uget python3Packages.python ];
19 for f in conf/com.ugetdm.{chrome,firefox}.json; do
20 substituteInPlace $f --replace "/usr" "$out"
23 install -D -t $out/bin bin/uget-integrator
24 install -D -t $out/etc/opt/chrome/native-messaging-hosts conf/com.ugetdm.chrome.json
25 install -D -t $out/etc/chromium/native-messaging-hosts conf/com.ugetdm.chrome.json
26 install -D -t $out/etc/opera/native-messaging-hosts conf/com.ugetdm.chrome.json
27 install -D -t $out/lib/mozilla/native-messaging-hosts conf/com.ugetdm.firefox.json
33 description = "Native messaging host to integrate uGet Download Manager with web browsers";
34 homepage = "https://github.com/ugetdm/uget-integrator";
35 license = licenses.gpl3;
36 platforms = platforms.linux;
37 maintainers = [ maintainers.romildo ];