git.iko.soy/typeable/nixpkgs
on master help sign in
transmission: fixes to make one test work again

Broken by 37134b607 (PR #134007).

commitec4a1591007265384c0f036e265e5e38eff83231 authorVladimír Čunát <v@cunat.cz> dateMon 27 Sep 2021, 17:28 (5 years ago) parent31ffc50
2 files changed+4−1
pkgs/applications/networking/p2p/transmission/default.nix+2−1 pkgs/tools/networking/miniupnpc/default.nix+2
pkgs/applications/networking/p2p/transmission/default.nix+2−1
@@ -97,7 +97,7 @@ in stdenv.mkDerivation {
9797 include <abstractions/nameservice>
9898 include <abstractions/ssl_certs>
9999 include "${apparmorRulesFromClosure { name = "transmission-daemon"; } ([
100− curl libevent openssl pcre zlib
100+ curl libevent openssl pcre zlib libnatpmp miniupnpc
101101 ] ++ lib.optionals enableSystemd [ systemd ]
102102 ++ lib.optionals stdenv.isLinux [ inotify-tools ]
103103 )}"
@@ -116,6 +116,7 @@ in stdenv.mkDerivation {
116116 '';
117117
118118 passthru.tests = {
119+ apparmor = nixosTests.transmission; # starts the service with apparmor enabled
119120 smoke-test = nixosTests.bittorrent;
120121 };
121122
pkgs/tools/networking/miniupnpc/default.nix+2
@@ -19,6 +19,8 @@ let
1919
2020 makeFlags = [ "PREFIX=$(out)" "INSTALLPREFIX=$(out)" ];
2121
22+ postInstall = ''chmod +x "$out"/lib/libminiupnpc.so'';
23+
2224 meta = with lib; {
2325 homepage = "http://miniupnp.free.fr/";
2426 description = "A client that implements the UPnP Internet Gateway Device (IGD) specification";