1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 gtest,
7 which,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "genmap";
12 version = "1.3.0";
13
14 src = fetchFromGitHub {
15 owner = "cpockrandt";
16 repo = "genmap";
17 rev = "genmap-v${version}";
18 fetchSubmodules = true;
19 hash = "sha256-7sIKBRMNzyCrZ/c2nXkknb6a5YsXe6DRE2IFhp6AviY=";
20 };
21
22 nativeBuildInputs = [ cmake ];
23
24 doCheck = true;
25 patches = [ ./gtest.patch ];
26 nativeCheckInputs = [
27 gtest
28 which
29 ];
30 preCheck = "make genmap_algo_test";
31
32 # disable benchmarks
33 preConfigure = ''
34 echo > benchmarks/CMakeLists.txt
35 '';
36
37 meta = {
38 description = "Ultra-fast computation of genome mappability";
39 mainProgram = "genmap";
40 license = lib.licenses.bsd3;
41 homepage = "https://github.com/cpockrandt/genmap";
42 maintainers = with lib.maintainers; [ jbedo ];
43 platforms = lib.platforms.unix;
44 };
45}