8 stdenv.mkDerivation rec {
9 pname = "aws-c-common";
12 src = fetchFromGitHub {
16 sha256 = "sha256-8RKx3OPb53hCquFcT+AbtX+LDNEvzLHuqtkbvXewqRs=";
19 nativeBuildInputs = [ cmake ];
22 "-DBUILD_SHARED_LIBS=ON"
23 ] ++ lib.optionals stdenv.hostPlatform.isRiscV [
24 "-DCMAKE_C_FLAGS=-fasynchronous-unwind-tables"
27 # aws-c-common misuses cmake modules, so we need
28 # to manually add a MODULE_PATH to its consumers
29 setupHook = ./setup-hook.sh;
31 # Prevent the execution of tests known to be flaky.
34 "promise_test_multiple_waiters"
35 ] ++ lib.optionals stdenv.hostPlatform.isMusl [
36 "sba_metrics" # https://github.com/awslabs/aws-c-common/issues/839
39 cat <<EOW >CTestCustom.cmake
40 SET(CTEST_CUSTOM_TESTS_IGNORE ${toString ignoreTests})
47 description = "AWS SDK for C common core";
48 homepage = "https://github.com/awslabs/aws-c-common";
49 license = licenses.asl20;
50 platforms = platforms.unix;
51 maintainers = with maintainers; [ orivej eelco r-burns ];