Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 32 lines 878 B view raw
1{ stdenv, fetchFromGitHub, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 name = "wolfssl-${version}"; 5 version = "3.13.0"; 6 7 src = fetchFromGitHub { 8 owner = "wolfSSL"; 9 repo = "wolfssl"; 10 rev = "v${version}-stable"; 11 sha256 = "0mvq7ifcpckfrg0zzcxqfbrv08pnz4a8g2z2j3s9h3cwns9ipn6h"; 12 }; 13 14 outputs = [ "out" "dev" "doc" "lib" ]; 15 16 nativeBuildInputs = [ autoreconfHook ]; 17 18 postInstall = '' 19 # fix recursive cycle: 20 # wolfssl-config points to dev, dev propagates bin 21 moveToOutput bin/wolfssl-config "$dev" 22 # moveToOutput also removes "$out" so recreate it 23 mkdir -p "$out" 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "A small, fast, portable implementation of TLS/SSL for embedded devices"; 28 homepage = "https://www.wolfssl.com/"; 29 platforms = platforms.all; 30 maintainers = with maintainers; [ mcmtroffaes ]; 31 }; 32}