Merge pull request #188561 from sheldonneuberger-sc/snn-stunnel-565-patch

This commit is contained in:
Sandro 2022-09-04 02:09:35 +02:00 committed by GitHub
commit 6d6b935b0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = [