python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / stunnel / default.nix
blob244dd3bbcdc002c8b658d6708e3c6dd433ee1a1d
1 { lib, stdenv, fetchurl, openssl, nixosTests }:
3 stdenv.mkDerivation rec {
4   pname = "stunnel";
5   version = "5.67";
7   src = fetchurl {
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`
12   };
14   buildInputs = [ openssl ];
15   configureFlags = [
16     "--with-ssl=${openssl.dev}"
17     "--sysconfdir=/etc"
18     "--localstatedir=/var"
19   ];
21   postInstall = ''
22     # remove legacy compatibility-wrapper that would require perl
23     rm $out/bin/stunnel3
24   '';
26   installFlags = [
27     "sysconfdir=\${out}/etc"
28     "localstatedir=\${TMPDIR}"
29   ];
31   passthru.tests = {
32     stunnel = nixosTests.stunnel;
33   };
35   meta = {
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 ];
41   };