From 44aa4d1566f3a93e40bc9c1f73196217d5e543c3 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Sun, 29 May 2022 00:32:12 +0100 Subject: [PATCH] liblouis: fix darwin build with patch (cherry picked from commit 327af2f90f9f89d6a4f031f124fdd732247956f9) --- pkgs/development/libraries/liblouis/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/liblouis/default.nix b/pkgs/development/libraries/liblouis/default.nix index a12bb1692396b..262bae7154b36 100644 --- a/pkgs/development/libraries/liblouis/default.nix +++ b/pkgs/development/libraries/liblouis/default.nix @@ -1,5 +1,7 @@ { fetchFromGitHub -, lib, stdenv +, lib +, stdenv +, fetchpatch , autoreconfHook , pkg-config , gettext @@ -21,6 +23,14 @@ stdenv.mkDerivation rec { sha256 = "sha256-Hfn0dfXihtUfO3R+qJaetrPwupcIwblvi1DQdHCF1s8="; }; + patches = [ + (fetchpatch { + name = "parenthesize-memcpy-calls-clang.patch"; + url = "https://github.com/liblouis/liblouis/commit/528f38938e9f539a251d9de92ad1c1b90401c4d0.patch"; + sha256 = "0hlhqsvd5wflg70bd7bmssnchk8znzbr93in0zpspzbyap6xz112"; + }) + ]; + outputs = [ "out" "dev" "man" "info" "doc" ]; nativeBuildInputs = [