From a45f93171b399e12d6d1a7d0f9ee027372b2878c Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Sat, 2 Nov 2019 18:54:37 +0100 Subject: [PATCH] bctoolbox: fix build with gcc9 --- pkgs/development/libraries/bctoolbox/default.nix | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/bctoolbox/default.nix b/pkgs/development/libraries/bctoolbox/default.nix index 2730696344e0..3f64ca2addf1 100644 --- a/pkgs/development/libraries/bctoolbox/default.nix +++ b/pkgs/development/libraries/bctoolbox/default.nix @@ -1,9 +1,17 @@ -{stdenv, fetchFromGitHub, cmake, mbedtls, bcunit, srtp}: +{stdenv, fetchpatch, fetchFromGitHub, cmake, mbedtls, bcunit, srtp}: stdenv.mkDerivation rec { name = "${baseName}-${version}"; baseName = "bctoolbox"; version = "0.6.0"; - buildInputs = [cmake mbedtls bcunit srtp]; + nativeBuildInputs = [cmake]; + buildInputs = [mbedtls bcunit srtp]; + patches = [ + (fetchpatch { + name = "fix-gcc9.patch"; + url = "https://github.com/BelledonneCommunications/bctoolbox/commit/2425a224634c7a70ae91f809bbab51771f0a30d7.patch"; + sha256 = "0ib859mwwlr6jk6qbwp6x25pp8wgv21lh0qgdsx5hyzwdzqx1b3h"; + }) + ]; src = fetchFromGitHub { owner = "BelledonneCommunications"; repo = baseName;