mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
splitcode: init at 0.30.0
This commit is contained in:
parent
0ea582475d
commit
42bc59498d
12
pkgs/by-name/sp/splitcode/add-stdint.patch
Normal file
12
pkgs/by-name/sp/splitcode/add-stdint.patch
Normal 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
|
47
pkgs/by-name/sp/splitcode/package.nix
Normal file
47
pkgs/by-name/sp/splitcode/package.nix
Normal 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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user