ngtcp2: switch to cmake build system to fix aarch64-linux build

Oversite happened in #189757
This commit is contained in:
Sandro Jäckel 2022-09-06 17:50:51 +02:00 committed by Sandro Jäckel
parent b292bfd0ab
commit 0ad4c0f29c
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub { lib, stdenv, fetchFromGitHub
, autoreconfHook, pkg-config, file , cmake
, libev, nghttp3, quictls , libev, nghttp3, quictls
, cunit, ncurses , cunit, ncurses
, withJemalloc ? false, jemalloc , withJemalloc ? false, jemalloc
@ -18,13 +18,13 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" "doc" ]; outputs = [ "out" "dev" "doc" ];
nativeBuildInputs = [ autoreconfHook pkg-config file ]; nativeBuildInputs = [ cmake ];
buildInputs = [ libev nghttp3 quictls ] ++ lib.optional withJemalloc jemalloc; buildInputs = [ libev nghttp3 quictls ] ++ lib.optional withJemalloc jemalloc;
checkInputs = [ cunit ncurses ]; checkInputs = [ cunit ncurses ];
preConfigure = '' cmakeFlags = [
substituteInPlace ./configure --replace /usr/bin/file ${file}/bin/file "-DENABLE_STATIC_LIB=OFF"
''; ];
doCheck = true; doCheck = true;
enableParallelBuilding = true; enableParallelBuilding = true;