transmission: fixes to make one test work again

Broken by 37134b607 (PR ).

(cherry picked from commit ec4a1591007265384c0f036e265e5e38eff83231)
This commit is contained in:
Vladimír Čunát 2021-09-27 17:28:35 +02:00 committed by github-actions[bot]
parent 47bf4156ee
commit c28d983bf6
2 changed files with 4 additions and 1 deletions
pkgs
applications/networking/p2p/transmission
tools/networking/miniupnpc

View File

@ -97,7 +97,7 @@ in stdenv.mkDerivation {
include <abstractions/nameservice>
include <abstractions/ssl_certs>
include "${apparmorRulesFromClosure { name = "transmission-daemon"; } ([
curl libevent openssl pcre zlib
curl libevent openssl pcre zlib libnatpmp miniupnpc
] ++ lib.optionals enableSystemd [ systemd ]
++ lib.optionals stdenv.isLinux [ inotify-tools ]
)}"
@ -116,6 +116,7 @@ in stdenv.mkDerivation {
'';
passthru.tests = {
apparmor = nixosTests.transmission; # starts the service with apparmor enabled
smoke-test = nixosTests.bittorrent;
};

View File

@ -19,6 +19,8 @@ let
makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
postInstall = ''chmod +x "$out"/lib/libminiupnpc.so'';
meta = with lib; {
homepage = "http://miniupnp.free.fr/";
description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";