@ -1,4 +1,4 @@
{ lib , stdenv , fetchFromGitHub , autoconf , automake , libtool , gettext }:
{ lib , stdenv , fetchFromGitHub , autoreconfHook }:
stdenv . mkDerivation rec {
@ -12,20 +12,32 @@ stdenv.mkDerivation rec {
sha256 = " 1 p 0 5 v r y 9 4 0 m r j p 6 2 3 6 c 0 z 8 3 y i z m w 9 p k 6 l y 2 l b 7 d 8 r p b 7 j 9 h 0 3 g l r " ;
} ;
buildInputs = [ autoconf automake gettext libtool ] ;
nativeBuildInputs = [ autoreconfHook ] ;
configurePhase = ''
autoreconf - vif
./configure - - prefix = $ out - - enable-openmp
configureFlags = [
" - - e n a b l e - o p e n m p = ${ if stdenv . isLinux then " y e s " else " n o " } "
" - - e n a b l e - e x a m p l e s = n o "
] ;
postInstall = ''
# Remove libtool archive
rm $ out/lib /* . l a
# 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 /* . c p p $ o u t / s h a r e / C o l P a c k / e x a m p l e s / B a s i c
cp - r SampleDrivers/Matrix * $ out/share/ColPack/examples
'' ;
meta = with lib ; {
description = " A p a c k a g e c o m p r i s i n g o f i m p l e m e n t a t i o n s o f a l g o r i t h m s f o r
vertex coloring and derivative computation " ;
homepage = " h t t p : / / c s c a p e s . c s . p u r d u e . e d u / c o l o r i n g p a g e / s o f t w a r e . h t m # f u n c t i o n a l i t i e s " ;
license = licenses . lgpl3 ;
platforms = platforms . linux ;
license = licenses . lgpl3Plus ;
platforms = platforms . uni x;
maintainers = with maintainers ; [ edwtjo ] ;
} ;
}