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