2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, gtest
|
|
|
|
, which
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "genmap";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cpockrandt";
|
|
|
|
repo = "genmap";
|
|
|
|
rev = "genmap-v${version}";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
sha256 = "sha256-7sIKBRMNzyCrZ/c2nXkknb6a5YsXe6DRE2IFhp6AviY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
patches = [ ./gtest.patch ];
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ gtest which ];
|
2021-12-06 16:07:01 +00:00
|
|
|
preCheck = "make genmap_algo_test";
|
|
|
|
|
|
|
|
# disable benchmarks
|
|
|
|
preConfigure = ''
|
|
|
|
echo > benchmarks/CMakeLists.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Ultra-fast computation of genome mappability";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
homepage = "https://github.com/cpockrandt/genmap";
|
|
|
|
maintainers = with lib.maintainers; [ jbedo ];
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|