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