{ stdenv, fetchsvn, autoreconfHook, pkgconfig , libxml2, python2Packages, swig }: stdenv.mkDerivation rec { name = "ghmm-svn${version}"; version = "2341"; src = fetchsvn { url = "https://svn.code.sf.net/p/ghmm/code/trunk/ghmm"; rev = "${version}"; sha256 = "067anx9mhs0f4f38q4wj2fds1pkp0jcy10i0fhggvrcp31gy0329"; }; #patches = [ ./static-lib-for-tools.patch ]; postPatch = '' sed -i -e 's,\(LDADD = .*/ghmm/\.libs/libghmm\)\.a,\1.la,' */Makefile.am ''; # The python wrapper needs to be built here for dependencies outputs = [ "out" "py" ]; configureFlags = [ "--without-python" ]; postBuild = '' cd ghmmwrapper python setup.py build cd .. ''; postInstall = '' cd ghmmwrapper python setup.py install --prefix="$py" cd .. ''; buildInputs = [ autoreconfHook pkgconfig libxml2 python2Packages.python swig ]; hardeningDisable = [ "format" ]; meta = with stdenv.lib; { description = "The General Hidden Markov Model library (GHMM) is a freely available C library implementing efficient data structures and algorithms for basic and extended HMMs with discrete and continous emissions."; homepage = http://ghmm.sourceforge.net; platforms = platforms.all; license = licenses.lgpl2Plus; }; enableParallelBuilding = true; }