2011-09-03 21:01:06 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, bison
|
|
|
|
, pkgconfig
|
2016-12-28 03:28:07 +00:00
|
|
|
, python27 # >= 2.6
|
|
|
|
, swig2 # 2.0
|
2011-09-03 21:01:06 +01:00
|
|
|
, 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 {
|
2016-12-28 03:28:07 +00:00
|
|
|
name = "sphinxbase-5prealpha";
|
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";
|
2016-12-28 03:28:07 +00:00
|
|
|
sha256 = "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp";
|
2011-04-04 19:50:23 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ swig2 python27 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;
|
2014-09-21 20:21:34 +01:00
|
|
|
license = stdenv.lib.licenses.bsd2;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2019-12-05 07:29:48 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ ];
|
2011-04-04 19:50:23 +01:00
|
|
|
};
|
2014-09-21 20:21:34 +01:00
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
}))
|