Skip to content

Commit a24694a

Browse files
committed
tor: passthru tests
1 parent 7bf0f73 commit a24694a

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

pkgs/tools/security/tor/default.nix

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ stdenv, fetchurl, pkgconfig, libevent, openssl, zlib, torsocks
2-
, libseccomp, systemd, libcap, lzma, zstd, scrypt
2+
, libseccomp, systemd, libcap, lzma, zstd, scrypt, nixosTests
33

44
# for update.nix
55
, writeScript
@@ -54,19 +54,22 @@ stdenv.mkDerivation rec {
5454
rm -rf $out/share/tor
5555
'';
5656

57-
passthru.updateScript = import ./update.nix {
58-
inherit (stdenv) lib;
59-
inherit
60-
writeScript
61-
common-updater-scripts
62-
bash
63-
coreutils
64-
curl
65-
gnupg
66-
gnugrep
67-
gnused
68-
nix
69-
;
57+
passthru = {
58+
tests.tor = nixosTests.tor;
59+
updateScript = import ./update.nix {
60+
inherit (stdenv) lib;
61+
inherit
62+
writeScript
63+
common-updater-scripts
64+
bash
65+
coreutils
66+
curl
67+
gnupg
68+
gnugrep
69+
gnused
70+
nix
71+
;
72+
};
7073
};
7174

7275
meta = with stdenv.lib; {

0 commit comments

Comments
 (0)