Skip to content

Commit

Permalink
splitcode: init at 0.30.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zimward committed Sep 29, 2024
1 parent 0ea5824 commit 42bc594
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pkgs/by-name/sp/splitcode/add-stdint.patch
Original file line number Diff line number Diff line change
@@ -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
47 changes: 47 additions & 0 deletions pkgs/by-name/sp/splitcode/package.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}

0 comments on commit 42bc594

Please sign in to comment.