diff options
author | Guillaume Girol <symphorien@users.noreply.github.com> | 2021-05-20 19:21:11 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-20 19:21:11 +0000 |
commit | d65876bd06debac9369937d62c74ab4a9a87d8f0 (patch) | |
tree | 7f4da61648878b5356c8dac52f67f89b1b368bf9 /pkgs | |
parent | 075586b488b4f748cad5709c6484a9c91ede3ac5 (diff) | |
parent | 3396ba048de7c3615f657af91410b4155ae3808d (diff) |
Merge pull request #123621 from JamieMagee/nzbhydra
nzbhydra2: refactor
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/servers/nzbhydra2/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/servers/nzbhydra2/default.nix b/pkgs/servers/nzbhydra2/default.nix index b1d3b4970d67c..12d2c0b7070e9 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; { |