2024-02-29 20:09:43 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, cmake, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "megahit";
|
|
|
|
version = "1.2.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "voutcn";
|
|
|
|
repo = "megahit";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1r5d9nkdmgjsbrpj43q9hy3s8jwsabaz3ji561v18hy47v58923c";
|
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
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=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
cmakeFlags = lib.optionals stdenv.hostPlatform.isStatic [
|
2022-04-27 09:35:20 +00:00
|
|
|
"-DSTATIC_BUILD=ON"
|
|
|
|
];
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An ultra-fast single-node solution for large and complex metagenomics assembly via succinct de Bruijn graph";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
homepage = "https://github.com/voutcn/megahit";
|
|
|
|
maintainers = with maintainers; [ luispedro ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|