Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
stdenv,
fetchFromGitHub,
cmake,
libcxx,
zlib,
nix-update-script,
}:
let
version = "0.31.3";
in
stdenv.mkDerivation {
pname = "splitcode";
inherit version;
src = fetchFromGitHub {
owner = "pachterlab";
repo = "splitcode";
tag = "v${version}";
hash = "sha256-EEYjBo52jPCSnv5WSGsXhfZEjsBCHdGerVPOZfShXBU=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [
libcxx
zlib
];
doCheck = true;
checkPhase = ''
mkdir func_tests
cp $src/func_tests/* ./func_tests/
bash ./func_tests/runtests.sh
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Tool for flexible, efficient parsing, interpreting, and editing of technical sequences in sequencing reads";
homepage = "https://github.com/pachterlab/splitcode";
license = lib.licenses.bsd2;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ zimward ];
mainProgram = "splitcode";
badPlatforms = [
# Test hangs indefinitely. See https://github.com/pachterlab/splitcode/issues/31
"aarch64-linux"
];
};
}