Merge pull request #123621 from JamieMagee/nzbhydra

nzbhydra2: refactor
This commit is contained in:
Guillaume Girol 2021-05-20 19:21:11 +00:00 committed by GitHub
commit d65876bd06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,6 +13,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ jre makeWrapper unzip ];
installPhase = ''
runHook preInstall
install -d -m 755 "$out/lib/${pname}"
cp -dpr --no-preserve=ownership "lib" "readme.md" "$out/lib/nzbhydra2"
install -D -m 755 "nzbhydra2wrapperPy3.py" "$out/lib/nzbhydra2/nzbhydra2wrapperPy3.py"
@ -20,6 +22,8 @@ stdenv.mkDerivation rec {
makeWrapper ${python3}/bin/python $out/bin/nzbhydra2 \
--add-flags "$out/lib/nzbhydra2/nzbhydra2wrapperPy3.py" \
--prefix PATH ":" ${jre}/bin
runHook postInstall
'';
meta = with lib; {