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 {
|
2014-09-21 21:21:34 +02:00
|
|
|
name = "sphinxbase-0.8";
|
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";
|
2014-09-21 21:21:34 +02:00
|
|
|
sha256 = "1a3c91g6rcfb2k8qyfhnd7s68ds6pxwv61xfp0ai1arbhx28jw2m";
|
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;
|
2014-09-21 21:21:34 +02:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
2011-04-04 20:50:23 +02:00
|
|
|
};
|
2014-09-21 21:21:34 +02:00
|
|
|
|
2011-09-03 22:01:06 +02:00
|
|
|
} // (stdenv.lib.optionalAttrs multipleOutputs {
|
|
|
|
outputs = [ "out" "lib" "headers" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $lib
|
2011-09-03 22:01:06 +02:00
|
|
|
cp -av $out/lib* $lib
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $headers
|
2011-09-03 22:01:06 +02:00
|
|
|
cp -av $out/include $headers
|
|
|
|
'';
|
|
|
|
}))
|