2011-09-03 20:01:06 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bison
|
|
|
|
, pkgconfig
|
|
|
|
, multipleOutputs ? false #Uses incomplete features of nix!
|
|
|
|
}:
|
2011-04-04 18:50:23 +00:00
|
|
|
|
2011-09-03 20:01:06 +00:00
|
|
|
stdenv.mkDerivation (rec {
|
2011-04-27 21:15:42 +00:00
|
|
|
name = "sphinxbase-0.7";
|
2011-04-04 18:50:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-04-04 18:50:30 +00:00
|
|
|
url = "mirror://sourceforge/cmusphinx/${name}.tar.gz";
|
2011-09-03 20:00:58 +00:00
|
|
|
sha256 = "1v3kfzw42ahxmr002i6wqigs832958vgghrv5dd62zazajdbk71q";
|
2011-04-04 18:50:23 +00:00
|
|
|
};
|
|
|
|
|
2011-04-27 21:15:42 +00:00
|
|
|
buildInputs = [ pkgconfig bison ];
|
2011-04-04 18:50:30 +00:00
|
|
|
|
2011-04-04 18:50:23 +00:00
|
|
|
meta = {
|
|
|
|
description = "Support Library for Pocketsphinx";
|
|
|
|
homepage = http://cmusphinx.sourceforge.net;
|
|
|
|
license = "free-non-copyleft";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
|
|
};
|
2011-09-03 20:01:06 +00:00
|
|
|
} // (stdenv.lib.optionalAttrs multipleOutputs {
|
|
|
|
outputs = [ "out" "lib" "headers" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $lib
|
2011-09-03 20:01:06 +00:00
|
|
|
cp -av $out/lib* $lib
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $headers
|
2011-09-03 20:01:06 +00:00
|
|
|
cp -av $out/include $headers
|
|
|
|
'';
|
|
|
|
}))
|
|
|
|
|