1 { lib, stdenv, fetchFromGitHub, autoreconfHook }:
3 stdenv.mkDerivation rec {
8 src = fetchFromGitHub {
12 sha256 = "1p05vry940mrjp6236c0z83yizmw9pk6ly2lb7d8rpb7j9h03glr";
15 nativeBuildInputs = [ autoreconfHook ];
18 "--enable-openmp=${if stdenv.hostPlatform.isLinux then "yes" else "no"}"
19 "--enable-examples=no"
23 # Remove libtool archive
26 # Remove compiled examples (Basic examples get compiled anyway)
29 # Copy the example sources (Basic tree contains scripts and object files)
30 mkdir -p $out/share/ColPack/examples/Basic
31 cp SampleDrivers/Basic/*.cpp $out/share/ColPack/examples/Basic
32 cp -r SampleDrivers/Matrix* $out/share/ColPack/examples
36 description = "Package comprising of implementations of algorithms for
37 vertex coloring and derivative computation";
38 homepage = "https://cscapes.cs.purdue.edu/coloringpage/software.htm#functionalities";
39 license = licenses.lgpl3Plus;
40 platforms = platforms.unix;
41 maintainers = with maintainers; [ edwtjo ];