nixpkgs-suyu/pkgs/tools/networking/stunnel/default.nix
chkno f6d7bf0315
stunnel: 5.64 -> 5.65 (#183617)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2022-07-30 18:25:22 +02:00

42 lines
1.1 KiB
Nix

{ lib, stdenv, fetchurl, openssl, nixosTests }:
stdenv.mkDerivation rec {
pname = "stunnel";
version = "5.65";
src = fetchurl {
url = "https://www.stunnel.org/downloads/${pname}-${version}.tar.gz";
sha256 = "60c500063bd1feff2877f5726e38278c086f96c178f03f09d264a2012d6bf7fc";
# please use the contents of "https://www.stunnel.org/downloads/stunnel-${version}.tar.gz.sha256",
# not the output of `nix-prefetch-url`
};
buildInputs = [ openssl ];
configureFlags = [
"--with-ssl=${openssl.dev}"
"--sysconfdir=/etc"
"--localstatedir=/var"
];
postInstall = ''
# remove legacy compatibility-wrapper that would require perl
rm $out/bin/stunnel3
'';
installFlags = [
"sysconfdir=\${out}/etc"
"localstatedir=\${TMPDIR}"
];
passthru.tests = {
stunnel = nixosTests.stunnel;
};
meta = {
description = "Universal tls/ssl wrapper";
homepage = "https://www.stunnel.org/";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = [ lib.maintainers.thoughtpolice ];
};
}