about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/biology/bamtools/default.nix
blob: 05373dafd38198844f2778424e53d22e3062a5bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, stdenv
, fetchFromGitHub
, cmake
, jsoncpp
, pkg-config
, zlib
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "bamtools";
  version = "2.5.2";

  src = fetchFromGitHub {
    owner = "pezmaster31";
    repo = "bamtools";
    rev = "refs/tags/v${finalAttrs.version}";
    hash = "sha256-l2DmA4P1kPneTCL9YVACE6LcQHT0F+mufPyM69VkksE=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  buildInputs = [
    jsoncpp
    zlib
  ];

  doCheck = true;

  meta = with lib; {
    description = "C++ API & command-line toolkit for working with BAM data";
    homepage = "https://github.com/pezmaster31/bamtools";
    changelog = "https://github.com/pezmaster31/bamtools/releases/tag/${finalAttrs.src.rev}";
    license = licenses.mit;
    maintainers = with maintainers; [ natsukium ];
    platforms = platforms.unix;
  };
})