transmission: fixes to make one test work again
Broken by 37134b607 (PR #134007). (cherry picked from commit ec4a1591007265384c0f036e265e5e38eff83231)
This commit is contained in:
parent
47bf4156ee
commit
c28d983bf6
@ -97,7 +97,7 @@ in stdenv.mkDerivation {
|
|||||||
include <abstractions/nameservice>
|
include <abstractions/nameservice>
|
||||||
include <abstractions/ssl_certs>
|
include <abstractions/ssl_certs>
|
||||||
include "${apparmorRulesFromClosure { name = "transmission-daemon"; } ([
|
include "${apparmorRulesFromClosure { name = "transmission-daemon"; } ([
|
||||||
curl libevent openssl pcre zlib
|
curl libevent openssl pcre zlib libnatpmp miniupnpc
|
||||||
] ++ lib.optionals enableSystemd [ systemd ]
|
] ++ lib.optionals enableSystemd [ systemd ]
|
||||||
++ lib.optionals stdenv.isLinux [ inotify-tools ]
|
++ lib.optionals stdenv.isLinux [ inotify-tools ]
|
||||||
)}"
|
)}"
|
||||||
@ -116,6 +116,7 @@ in stdenv.mkDerivation {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
|
apparmor = nixosTests.transmission; # starts the service with apparmor enabled
|
||||||
smoke-test = nixosTests.bittorrent;
|
smoke-test = nixosTests.bittorrent;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -19,6 +19,8 @@ let
|
|||||||
|
|
||||||
makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
|
makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
|
||||||
|
|
||||||
|
postInstall = ''chmod +x "$out"/lib/libminiupnpc.so'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "http://miniupnp.free.fr/";
|
homepage = "http://miniupnp.free.fr/";
|
||||||
description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";
|
description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user