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";
|
|
|
|
};
|
2011-09-03 21:01:06 +01:00
|
|
|
} // (stdenv.lib.optionalAttrs multipleOutputs {
|
|
|
|
outputs = [ "out" "lib" "headers" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $lib
|
2011-09-03 21:01:06 +01:00
|
|
|
cp -av $out/lib* $lib
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $headers
|
2011-09-03 21:01:06 +01:00
|
|
|
cp -av $out/include $headers
|
|
|
|
'';
|
|
|
|
}))
|
|
|
|
|