10 stdenv.mkDerivation rec {
15 url = "https://github.com/theotherp/${pname}/releases/download/v${version}/${pname}-${version}-generic.zip";
16 hash = "sha256-ybI6nCw8yY2XceXiMkION7/p7gl58lrAPpUq6EpManU=";
29 install -d -m 755 "$out/lib/${pname}"
30 cp -dpr --no-preserve=ownership "lib" "readme.md" "$out/lib/nzbhydra2"
31 install -D -m 755 "nzbhydra2wrapperPy3.py" "$out/lib/nzbhydra2/nzbhydra2wrapperPy3.py"
33 makeWrapper ${python3}/bin/python $out/bin/nzbhydra2 \
34 --add-flags "$out/lib/nzbhydra2/nzbhydra2wrapperPy3.py" \
35 --prefix PATH ":" ${jre}/bin
41 description = "Usenet meta search";
42 homepage = "https://github.com/theotherp/nzbhydra2";
43 license = lib.licenses.asl20;
44 maintainers = with lib.maintainers; [ matteopacini ];
45 platforms = lib.platforms.linux;
46 mainProgram = "nzbhydra2";