Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
73 lines
1.6 KiB
Nix
73 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmake,
|
|
rocksdb_8_3,
|
|
rapidjson,
|
|
pkg-config,
|
|
fetchFromGitHub,
|
|
zlib,
|
|
}:
|
|
|
|
let
|
|
rocksdb = rocksdb_8_3;
|
|
concurrentqueue = fetchFromGitHub {
|
|
owner = "cameron314";
|
|
repo = "concurrentqueue";
|
|
tag = "v1.0.4";
|
|
hash = "sha256-MkhlDme6ZwKPuRINhfpv7cxliI2GU3RmTfC6O0ke/IQ=";
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "sortmerna";
|
|
version = "4.3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sortmerna";
|
|
repo = "sortmerna";
|
|
tag = "v${version}";
|
|
hash = "sha256-oxwZBkeW3usEcJE1XLu1UigKsgOsljwGFTpb7U3845I=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
zlib
|
|
rocksdb
|
|
rapidjson
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DPORTABLE=off"
|
|
"-DRAPIDJSON_HOME=${rapidjson}"
|
|
"-DROCKSDB_HOME=${rocksdb}"
|
|
"-DCONCURRENTQUEUE_HOME=${concurrentqueue}"
|
|
"-DROCKSDB_STATIC=off"
|
|
"-DZLIB_STATIC=off"
|
|
];
|
|
|
|
postPatch = ''
|
|
# Fix missing pthread dependency for the main binary.
|
|
substituteInPlace src/sortmerna/CMakeLists.txt \
|
|
--replace-fail "target_link_libraries(sortmerna" \
|
|
"target_link_libraries(sortmerna Threads::Threads"
|
|
|
|
# Fix gcc-13 build by adding missing <cstdint> includes:
|
|
# https://github.com/sortmerna/sortmerna/issues/412
|
|
sed -e '1i #include <cstdint>' -i include/kseq_load.hpp
|
|
'';
|
|
|
|
meta = {
|
|
description = "Tools for filtering, mapping, and OTU-picking from shotgun genomics data";
|
|
mainProgram = "sortmerna";
|
|
license = lib.licenses.lgpl3;
|
|
platforms = lib.platforms.x86_64;
|
|
homepage = "https://bioinfo.lifl.fr/RNA/sortmerna/";
|
|
maintainers = with lib.maintainers; [ luispedro ];
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|