about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/math/colpack/default.nix
blob: f203852c96575f7b59df7d29595ec8df4de99401 (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
{ lib, stdenv, fetchFromGitHub, autoconf, automake, libtool, gettext }:

stdenv.mkDerivation rec {

  pname = "ColPack";
  version = "1.0.10";

  src = fetchFromGitHub {
    owner = "CSCsw";
    repo = pname;
    rev = "v" + version;
    sha256 = "1p05vry940mrjp6236c0z83yizmw9pk6ly2lb7d8rpb7j9h03glr";
  };

  buildInputs = [ autoconf automake gettext libtool ];

  configurePhase = ''
    autoreconf -vif
    ./configure --prefix=$out --enable-openmp
  '';

  meta = with lib; {
    description = "A package comprising of implementations of algorithms for
    vertex coloring and derivative computation";
    homepage = "http://cscapes.cs.purdue.edu/coloringpage/software.htm#functionalities";
    license = licenses.lgpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ edwtjo ];
  };

}