aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/libraries/aws-c-common/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/libraries/aws-c-common/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/libraries/aws-c-common/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/libraries/aws-c-common/default.nix b/infra/libkookie/nixpkgs/pkgs/development/libraries/aws-c-common/default.nix
index b028813558f5..6470566d5c71 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/libraries/aws-c-common/default.nix
+++ b/infra/libkookie/nixpkgs/pkgs/development/libraries/aws-c-common/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchFromGitHub, cmake }:
+{ lib, stdenv, fetchFromGitHub, cmake, fetchpatch }:
stdenv.mkDerivation rec {
pname = "aws-c-common";
@@ -13,6 +13,15 @@ stdenv.mkDerivation rec {
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
"-Wno-nullability-extension -Wno-typedef-redefinition";