diff options
Diffstat (limited to 'pkgs/tools/networking/stunnel/default.nix')
-rw-r--r-- | pkgs/tools/networking/stunnel/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/tools/networking/stunnel/default.nix b/pkgs/tools/networking/stunnel/default.nix index f9c33298fc31..e37aaf77f0d6 100644 --- a/pkgs/tools/networking/stunnel/default.nix +++ b/pkgs/tools/networking/stunnel/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, openssl, nixosTests }: +{ lib, stdenv, fetchurl, fetchpatch, openssl, nixosTests }: stdenv.mkDerivation rec { pname = "stunnel"; @@ -10,6 +10,15 @@ stdenv.mkDerivation rec { # please use the contents of "https://www.stunnel.org/downloads/stunnel-${version}.tar.gz.sha256", # not the output of `nix-prefetch-url` }; + patches = [ + # Fixes compilation on darwin, patch is from + # https://github.com/mtrojnar/stunnel/pull/15. + (fetchpatch { + name = "stunnel_darwin_environ.patch"; + url = "https://github.com/mtrojnar/stunnel/commit/d41932f6d55f639cc921007c2e180a55ef88bf00.patch"; + sha256 = "sha256-d2K/BHE6GxvDCBIbttCHEVwH9SCu0jggNvhVHkC/qto="; + }) + ]; buildInputs = [ openssl ]; configureFlags = [ |