Files
ccpkgs/pkgs/ghmm/default.nix
2023-05-23 14:24:16 -04:00

57 lines
1.3 KiB
Nix

{ stdenv, fetchsvn, autoreconfHook, pkg-config
, 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
pkg-config
libxml2
python2Packages.python
swig
];
hardeningDisable = [ "format" ];
meta = with 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;
}