1 { lib, stdenv, fetchurl, openssl, nixosTests }:
3 stdenv.mkDerivation rec {
8 url = "https://www.stunnel.org/archive/${lib.versions.major version}.x/${pname}-${version}.tar.gz";
9 sha256 = "3086939ee6407516c59b0ba3fbf555338f9d52f459bcab6337c0f00e91ea8456";
10 # please use the contents of "https://www.stunnel.org/downloads/stunnel-${version}.tar.gz.sha256",
11 # not the output of `nix-prefetch-url`
14 buildInputs = [ openssl ];
16 "--with-ssl=${openssl.dev}"
18 "--localstatedir=/var"
22 # remove legacy compatibility-wrapper that would require perl
27 "sysconfdir=\${out}/etc"
28 "localstatedir=\${TMPDIR}"
32 stunnel = nixosTests.stunnel;
36 description = "Universal tls/ssl wrapper";
37 homepage = "https://www.stunnel.org/";
38 license = lib.licenses.gpl2Plus;
39 platforms = lib.platforms.unix;
40 maintainers = [ lib.maintainers.thoughtpolice ];