From 3396ba048de7c3615f657af91410b4155ae3808d Mon Sep 17 00:00:00 2001 From: Jamie Magee Date: Tue, 18 May 2021 20:50:20 -0700 Subject: [PATCH] nzbhydra2: refactor --- pkgs/servers/nzbhydra2/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/servers/nzbhydra2/default.nix b/pkgs/servers/nzbhydra2/default.nix index b1d3b4970d67..12d2c0b7070e 100644 --- a/pkgs/servers/nzbhydra2/default.nix +++ b/pkgs/servers/nzbhydra2/default.nix @@ -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; {