aws-c-common: 0.4.64 -> 0.5.2, unmark musl broken, enable tests

Release 0.5.2 fixes musl support
This commit is contained in:
Ryan Burns 2021-03-04 18:22:06 -08:00
parent 96e9a7c30b
commit 46225faef5

View File

@ -2,13 +2,13 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "aws-c-common"; pname = "aws-c-common";
version = "0.4.64"; version = "0.5.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "awslabs"; owner = "awslabs";
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-izEZMOPHj/9EL78b/t3M0Tki6eA8eRrpG7DO2tkpf1A="; sha256 = "0rd2qzaa9mmn5f6f2bl1wgv54f17pqx3vwyy9f8ylh59qfnilpmg";
}; };
patches = [ patches = [
@ -23,18 +23,19 @@ stdenv.mkDerivation rec {
cmakeFlags = [ cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON" "-DBUILD_SHARED_LIBS=ON"
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # for tests
]; ];
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
"-Wno-nullability-extension -Wno-typedef-redefinition"; "-Wno-nullability-extension -Wno-typedef-redefinition";
doCheck = true;
meta = with lib; { meta = with lib; {
description = "AWS SDK for C common core"; description = "AWS SDK for C common core";
homepage = "https://github.com/awslabs/aws-c-common"; homepage = "https://github.com/awslabs/aws-c-common";
license = licenses.asl20; license = licenses.asl20;
platforms = platforms.unix; platforms = platforms.unix;
maintainers = with maintainers; [ orivej eelco ]; maintainers = with maintainers; [ orivej eelco r-burns ];
# https://github.com/awslabs/aws-c-common/issues/754
broken = stdenv.hostPlatform.isMusl;
}; };
} }