transmission: fixes to make one test work again

Broken by 37134b607 (PR #134007).
conduit-nginx
Vladimír Čunát 2021-09-27 17:28:35 +02:00
parent 31ffc50c57
commit ec4a159100
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
2 changed files with 4 additions and 1 deletions

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";