splitcode: init at 0.30.0

This commit is contained in:
zimward 2024-09-28 22:56:31 +09:00
parent 0ea582475d
commit 42bc59498d
No known key found for this signature in database
GPG Key ID: 4CAC61D6A482FCD9
2 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff --git a/src/SplitCode.h b/src/SplitCode.h
index 45c199c..fb05250 100644
--- a/src/SplitCode.h
+++ b/src/SplitCode.h
@@ -18,6 +18,7 @@
#include <stack>
#include <cmath>
#include <iomanip>
+#include <cstdint>
#if defined(_MSVC_LANG)
#define SPLITCODE_CPP_VERSION _MSVC_LANG

View File

@ -0,0 +1,47 @@
{
lib,
stdenv,
fetchFromGitHub,
cmake,
libcxx,
zlib,
}:
let
version = "0.30.0";
in
stdenv.mkDerivation {
pname = "splitcode";
inherit version;
src = fetchFromGitHub {
owner = "pachterlab";
repo = "splitcode";
rev = "v${version}";
hash = "sha256-g38pJFP9uA2P5ktogAPXKgPtsEJn5vtnK5HClqqezmg=";
};
patches = [ ./add-stdint.patch ];
nativeBuildInputs = [ cmake ];
buildInputs = [
libcxx
zlib
];
doCheck = true;
checkPhase = ''
mkdir func_tests
cp $src/func_tests/* ./func_tests/
bash ./func_tests/runtests.sh
'';
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";
};
}