2021-08-22 07:53:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
pname = "ColPack";
|
|
|
|
version = "1.0.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CSCsw";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v" + version;
|
|
|
|
sha256 = "1p05vry940mrjp6236c0z83yizmw9pk6ly2lb7d8rpb7j9h03glr";
|
|
|
|
};
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-openmp=${if stdenv.isLinux then "yes" else "no"}"
|
|
|
|
"--enable-examples=no"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# Remove libtool archive
|
|
|
|
rm $out/lib/*.la
|
|
|
|
|
|
|
|
# Remove compiled examples (Basic examples get compiled anyway)
|
|
|
|
rm -r $out/examples
|
|
|
|
|
|
|
|
# Copy the example sources (Basic tree contains scripts and object files)
|
|
|
|
mkdir -p $out/share/ColPack/examples/Basic
|
|
|
|
cp SampleDrivers/Basic/*.cpp $out/share/ColPack/examples/Basic
|
|
|
|
cp -r SampleDrivers/Matrix* $out/share/ColPack/examples
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A package comprising of implementations of algorithms for
|
|
|
|
vertex coloring and derivative computation";
|
|
|
|
homepage = "http://cscapes.cs.purdue.edu/coloringpage/software.htm#functionalities";
|
2021-08-22 07:53:02 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ edwtjo ];
|
|
|
|
};
|
|
|
|
}
|