libb2: Use autoreconfHook and build in parallel

This commit is contained in:
Martin Weinelt
2023-01-10 02:14:29 +01:00
parent 71ab3109f2
commit e7fb320d60
+14 -7
View File
@@ -1,4 +1,10 @@
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, pkg-config }:
{ lib
, stdenv
, fetchFromGitHub
, autoreconfHook
, libtool
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "libb2";
@@ -7,18 +13,19 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "BLAKE2";
repo = "libb2";
rev = "v${version}";
rev = "refs/tags/v${version}";
sha256 = "0qj8aaqvfcavj1vj5asm4pqm03ap7q8x4c2fy83cqggvky0frgya";
};
preConfigure = ''
patchShebangs autogen.sh
./autogen.sh
'';
nativeBuildInputs = [
autoreconfHook
libtool
pkg-config
];
configureFlags = lib.optional stdenv.hostPlatform.isx86 "--enable-fat=yes";
nativeBuildInputs = [ autoconf automake libtool pkg-config ];
enableParallelBuilding = true;
doCheck = true;