9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
16 rev = "v${version}-stable";
17 sha256 = "sha256-d8DDyEsK35WK7c0udZI5HxQLO+mbod8hlbSoa3IWWS0=";
21 patchShebangs ./scripts
22 # ocsp tests require network access
23 sed -i -e '/ocsp\.test/d' -e '/ocsp-stapling\.test/d' scripts/include.am
24 # ensure test detects musl-based systems too
25 substituteInPlace scripts/ocsp-stapling2.test \
26 --replace '"linux-gnu"' '"linux-"'
29 # Almost same as Debian but for now using --enable-all --enable-reproducible-build instead of --enable-distro to ensure options.h gets installed
32 "--enable-base64encode"
35 "--enable-reproducible-build"
46 propagatedBuildInputs = [ ] ++ lib.optionals stdenv.isDarwin [ Security ];
52 checkInputs = [ openssl ];
55 # fix recursive cycle:
56 # wolfssl-config points to dev, dev propagates bin
57 moveToOutput bin/wolfssl-config "$dev"
58 # moveToOutput also removes "$out" so recreate it
63 description = "A small, fast, portable implementation of TLS/SSL for embedded devices";
64 homepage = "https://www.wolfssl.com/";
65 platforms = platforms.all;
66 license = licenses.gpl2Plus;
67 maintainers = with maintainers; [ fab ];