From ec4a1591007265384c0f036e265e5e38eff83231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Mon, 27 Sep 2021 17:28:35 +0200 Subject: [PATCH] transmission: fixes to make one test work again Broken by 37134b607 (PR #134007). --- pkgs/applications/networking/p2p/transmission/default.nix | 3 ++- pkgs/tools/networking/miniupnpc/default.nix | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/p2p/transmission/default.nix b/pkgs/applications/networking/p2p/transmission/default.nix index 6e1367a6b4e5..312023566b02 100644 --- a/pkgs/applications/networking/p2p/transmission/default.nix +++ b/pkgs/applications/networking/p2p/transmission/default.nix @@ -97,7 +97,7 @@ in stdenv.mkDerivation { include include 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; }; diff --git a/pkgs/tools/networking/miniupnpc/default.nix b/pkgs/tools/networking/miniupnpc/default.nix index 9fe476906bc6..0182440a8eb7 100644 --- a/pkgs/tools/networking/miniupnpc/default.nix +++ b/pkgs/tools/networking/miniupnpc/default.nix @@ -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";