From 1d32db25570dc021997f8e742390c430b3ecec4b Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Fri, 20 May 2022 04:20:00 +0000 Subject: [PATCH] jtc: fix build --- pkgs/development/tools/jtc/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/jtc/default.nix b/pkgs/development/tools/jtc/default.nix index 947f26664f4..c8a13c07cb6 100644 --- a/pkgs/development/tools/jtc/default.nix +++ b/pkgs/development/tools/jtc/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub }: +{ lib, stdenv, fetchFromGitHub, fetchpatch }: stdenv.mkDerivation rec { pname = "jtc"; @@ -11,6 +11,14 @@ stdenv.mkDerivation rec { sha256 = "sha256-VATRlOOV4wBInLOm9J0Dp2vhtL5mb0Yxdl/ya0JiqEU="; }; + patches = [ + # Fix building with Clang. Removing with next release. + (fetchpatch { + url = "https://github.com/ldn-softdev/jtc/commit/92a5116e5524c0b6d2f539db7b5cc9fdd7c5b8ab.patch"; + sha256 = "sha256-AAvDH0XsT8/CAguG611/odg0m1HR+veC0jbAw6KLHLM="; + }) + ]; + buildPhase = '' runHook preBuild