diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2024-02-10 10:26:43 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2024-02-10 10:26:43 +0000 |
commit | 90a5d1b931d48ce9764c541d06bc57848b2f7b9e (patch) | |
tree | 0ba14c4c1a52263a43b4739b8728bd448c539fc4 /pkgs/applications/science/biology | |
parent | f5bf3f09f37439908754ff2e85515c1575ab04ab (diff) |
megahit: fir `gcc-13` build failure
Without the change build fails on `master` against `gcc-13` as https://hydra.nixos.org/build/247673319: In file included from /build/source/src/main_local_assemble.cpp:27: /build/source/src/localasm/local_assemble.h:31:3: error: 'uint32_t' does not name a type 31 | uint32_t kmin{11}; | ^~~~~~~~ /build/source/src/localasm/local_assemble.h:1:1: note: 'uint32_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'? +++ |+#include <cstdint>
Diffstat (limited to 'pkgs/applications/science/biology')
-rw-r--r-- | pkgs/applications/science/biology/megahit/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/applications/science/biology/megahit/default.nix b/pkgs/applications/science/biology/megahit/default.nix index 7f054a51d5e05..5fa9420bc87cb 100644 --- a/pkgs/applications/science/biology/megahit/default.nix +++ b/pkgs/applications/science/biology/megahit/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, cmake, zlib }: +{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, zlib }: stdenv.mkDerivation rec { pname = "megahit"; @@ -11,6 +11,16 @@ stdenv.mkDerivation rec { sha256 = "1r5d9nkdmgjsbrpj43q9hy3s8jwsabaz3ji561v18hy47v58923c"; }; + patches = [ + # Fix gcc-13 build failure: + # https://github.com/voutcn/megahit/pull/366 + (fetchpatch { + name = "gcc-13.patch"; + url = "https://github.com/voutcn/megahit/commit/4cb2f793503087163bda8592222f105f27e33e66.patch"; + hash = "sha256-b5mhzif+OPcMjmg+BnaUc5CB6Acn/KTBOJEw+WYEhbs="; + }) + ]; + nativeBuildInputs = [ cmake ]; buildInputs = [ zlib ]; |