mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
tor: enable Proof of Work defense for onion services
by allowing inclusion of GPL-licensed code for more details see https://gitlab.torproject.org/tpo/onion-services/onion-support/-/wikis/Documentation/PoW-FAQ#compiling-c-tor-with-the-pow-defense
This commit is contained in:
parent
0a946167d5
commit
5aa01c8fe5
@ -46,6 +46,11 @@ stdenv.mkDerivation rec {
|
||||
patches = [ ./disable-monotonic-timer-tests.patch ];
|
||||
|
||||
configureFlags =
|
||||
# allow inclusion of GPL-licensed code (needed for Proof of Work defense for onion services)
|
||||
# for more details see
|
||||
# https://gitlab.torproject.org/tpo/onion-services/onion-support/-/wikis/Documentation/PoW-FAQ#compiling-c-tor-with-the-pow-defense
|
||||
[ "--enable-gpl" ]
|
||||
++
|
||||
# cross compiles correctly but needs the following
|
||||
lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "--disable-tool-name-check" ]
|
||||
++
|
||||
@ -113,7 +118,7 @@ stdenv.mkDerivation rec {
|
||||
the TCP protocol.
|
||||
'';
|
||||
|
||||
license = licenses.bsd3;
|
||||
license = with licenses; [ bsd3 gpl3Only ];
|
||||
|
||||
maintainers = with maintainers;
|
||||
[ thoughtpolice joachifm prusnak ];
|
||||
|
Loading…
Reference in New Issue
Block a user