10 stdenv.mkDerivation rec {
14 src = fetchFromGitHub {
18 sha256 = "1r5d9nkdmgjsbrpj43q9hy3s8jwsabaz3ji561v18hy47v58923c";
22 # Fix gcc-13 build failure:
23 # https://github.com/voutcn/megahit/pull/366
25 name = "gcc-13.patch";
26 url = "https://github.com/voutcn/megahit/commit/4cb2f793503087163bda8592222f105f27e33e66.patch";
27 hash = "sha256-b5mhzif+OPcMjmg+BnaUc5CB6Acn/KTBOJEw+WYEhbs=";
31 nativeBuildInputs = [ cmake ];
32 buildInputs = [ zlib ];
34 cmakeFlags = lib.optionals stdenv.hostPlatform.isStatic [
38 description = "Ultra-fast single-node solution for large and complex metagenomics assembly via succinct de Bruijn graph";
39 license = licenses.gpl3;
40 homepage = "https://github.com/voutcn/megahit";
41 maintainers = with maintainers; [ luispedro ];
42 platforms = [ "x86_64-linux" ];