From a85b73c514116fecf948b9cf532ebefbc2e854a7 Mon Sep 17 00:00:00 2001 From: amesgen Date: Sat, 25 Feb 2023 13:40:11 +0100 Subject: [PATCH] tandem-aligner: fix build with GCC 12 --- .../science/biology/tandem-aligner/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/science/biology/tandem-aligner/default.nix b/pkgs/applications/science/biology/tandem-aligner/default.nix index f74ba9d2e443..53daffbe0677 100644 --- a/pkgs/applications/science/biology/tandem-aligner/default.nix +++ b/pkgs/applications/science/biology/tandem-aligner/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchFromGitHub +, fetchpatch , cmake , zlib }: @@ -16,6 +17,15 @@ stdenv.mkDerivation { hash = "sha256-iMDj1HZ8LzmZckuAM3lbG3eSJSd/5JGVA6SBs7+AgX8="; }; + patches = [ + (fetchpatch { + # https://github.com/seryrzu/tandem_aligner/pull/4 + url = "https://github.com/seryrzu/tandem_aligner/commit/8b516c94f90aaa9cb84278aa811285d4204b03a9.patch"; + hash = "sha256-kD46SykXklG/avK0+sc61YKFw9Bes8ZgFAjVXmcpN8k="; + stripLen = 1; + }) + ]; + sourceRoot = "source/tandem_aligner"; nativeBuildInputs = [ cmake ];