Skip to content

Commit

Permalink
splitcode: init at 0.30.0 (#345111)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 authored Oct 5, 2024
2 parents fc48b39 + 42bc594 commit 7eb7813
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
7 changes: 7 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23800,6 +23800,13 @@
githubId = 1108325;
name = "Théo Zimmermann";
};
zimward = {
name = "zimward";
github = "zimward";
githubId = 96021122;
matrix = "@memoryfragmentation:matrix.org";
keys = [ { fingerprint = "CBF7 FA5E F4B5 8B68 5977 3E3E 4CAC 61D6 A482 FCD9"; } ];
};
zlepper = {
name = "Rasmus Hansen";
github = "zlepper";
Expand Down
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 7eb7813

Please sign in to comment.