aws-c-common: fix build with cmake 3.19
This commit is contained in:
parent
91c6eb509b
commit
42c89295db
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake }:
|
{ lib, stdenv, fetchFromGitHub, cmake, fetchpatch }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "aws-c-common";
|
pname = "aws-c-common";
|
||||||
|
@ -13,6 +13,15 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
# can be removed once https://github.com/awslabs/aws-c-common/pull/735 gets merged, and version bumped
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "fix-re-export-of-target.patch";
|
||||||
|
url = "https://github.com/awslabs/aws-c-common/pull/735/commits/3fca5c629ce0c4d66f50f7152685f3fe73941cb4.patch";
|
||||||
|
sha256 = "056f9kyg1c4lwjq8n0r28w1n3zbwrwpi1wbqabk99gaayg46x35a";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
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";
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue