13 stdenv.mkDerivation (finalAttrs: {
17 src = fetchFromGitHub {
20 rev = "v${finalAttrs.version}";
21 hash = "sha256-k2+ddJIgGE41KGZODovU9VdurbWerEtdqNrFDwyuFjo=";
24 sourceRoot = "${finalAttrs.src.name}/src";
27 # https://github.com/ablab/spades/pull/1314
29 name = "copytree.patch";
30 url = "https://github.com/ablab/spades/commit/af1f756a46c5da669897b841d4f753af1eaa9588.patch";
31 hash = "sha256-tkT7hb0TqsbLkcTs9u43nzvV8bVdh3G9VKYqFFLrQv8=";
33 extraPrefix = "projects/";
38 "-DZLIB_ENABLE_TESTS=OFF"
39 "-DSPADES_BUILD_INTERNAL=OFF"
43 # The CMakeListsInternal.txt file should be empty in the release tarball
44 echo "" > CMakeListsInternal.txt
47 nativeBuildInputs = [ cmake ];
56 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-faligned-allocation";
63 description = "St. Petersburg genome assembler, a toolkit for assembling and analyzing sequencing data";
64 changelog = "https://github.com/ablab/spades/blob/${finalAttrs.version}/changelog.md";
65 downloadPage = "https://github.com/ablab/spades";
66 homepage = "http://ablab.github.io/spades";
67 license = lib.licenses.gpl2Only;
68 platforms = lib.platforms.unix;
69 maintainers = with lib.maintainers; [ bzizou ];
70 broken = stdenv.hostPlatform.isMusl;