about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/science/biology/bicpl/default.nix
blob: 5cf63e34224240fbae8aa4af7d8dd76d09879846 (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
{ lib, stdenv, fetchFromGitHub, cmake, libminc, netpbm }:

stdenv.mkDerivation rec {
  pname = "bicpl";
  version = "unstable-2020-10-15";

  # current master is significantly ahead of most recent release, so use Git version:
  src = fetchFromGitHub {
    owner  = "BIC-MNI";
    repo   = pname;
    rev    = "a58af912a71a4c62014975b89ef37a8e72de3c9d";
    sha256 = "0iw0pmr8xrifbx5l8a0xidfqbm1v8hwzqrw0lcmimxlzdihyri0g";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ libminc netpbm ];

  cmakeFlags = [ "-DLIBMINC_DIR=${libminc}/lib/cmake" ];

  doCheck = false;
  # internal_volume_io.h: No such file or directory

  meta = with lib; {
    homepage = "https://github.com/BIC-MNI/bicpl";
    description = "Brain Imaging Centre programming library";
    maintainers = with maintainers; [ bcdarwin ];
    platforms = platforms.unix;
    license   = licenses.free;
  };
}