depot/third_party/nixpkgs/pkgs/by-name/sp/spades/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

46 lines
965 B
Nix

{
lib,
stdenv,
fetchurl,
zlib,
bzip2,
cmake,
python3,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "spades";
version = "3.15.5";
src = fetchurl {
url = "https://github.com/ablab/spades/releases/download/v${finalAttrs.version}/SPAdes-${finalAttrs.version}.tar.gz";
hash = "sha256-FVw2QNVx8uexmgUDHR/Q0ZvYLfeF04hw+5O9JBsSu/o=";
};
sourceRoot = "SPAdes-${finalAttrs.version}/src";
env.CXXFLAGS = toString [
# GCC 13: error: 'uint32_t' does not name a type
"-include cstdint"
];
nativeBuildInputs = [ cmake ];
buildInputs = [
zlib
bzip2
python3
];
doCheck = true;
meta = {
description = "St. Petersburg genome assembler, a toolkit for assembling and analyzing sequencing data";
license = lib.licenses.gpl2Only;
homepage = "http://ablab.github.io/spades";
platforms = [
"x86_64-linux"
"x86_64-darwin"
];
maintainers = with lib.maintainers; [ bzizou ];
};
})