Skip to content

Commit

Permalink
tor: passthru tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mweinelt committed Jul 28, 2020
1 parent 7bf0f73 commit a24694a
Showing 1 changed file with 17 additions and 14 deletions.
31 changes: 17 additions & 14 deletions pkgs/tools/security/tor/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, libevent, openssl, zlib, torsocks
, libseccomp, systemd, libcap, lzma, zstd, scrypt
, libseccomp, systemd, libcap, lzma, zstd, scrypt, nixosTests

# for update.nix
, writeScript
Expand Down Expand Up @@ -54,19 +54,22 @@ stdenv.mkDerivation rec {
rm -rf $out/share/tor
'';

passthru.updateScript = import ./update.nix {
inherit (stdenv) lib;
inherit
writeScript
common-updater-scripts
bash
coreutils
curl
gnupg
gnugrep
gnused
nix
;
passthru = {
tests.tor = nixosTests.tor;
updateScript = import ./update.nix {
inherit (stdenv) lib;
inherit
writeScript
common-updater-scripts
bash
coreutils
curl
gnupg
gnugrep
gnused
nix
;
};
};

meta = with stdenv.lib; {
Expand Down

0 comments on commit a24694a

Please sign in to comment.