-
-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
}; | ||
} |