depot/third_party/nixpkgs/pkgs/by-name/sp/splitcode/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

47 lines
943 B
Nix

{
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";
};
}