2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2011-09-03 20:01:06 +00:00
|
|
|
, fetchurl
|
|
|
|
, bison
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2016-12-28 03:28:07 +00:00
|
|
|
, python27 # >= 2.6
|
|
|
|
, swig2 # 2.0
|
2011-09-03 20:01:06 +00:00
|
|
|
, multipleOutputs ? false #Uses incomplete features of nix!
|
|
|
|
}:
|
2011-04-04 18:50:23 +00:00
|
|
|
|
2011-09-03 20:01:06 +00:00
|
|
|
stdenv.mkDerivation (rec {
|
2016-12-28 03:28:07 +00:00
|
|
|
name = "sphinxbase-5prealpha";
|
2011-04-04 18:50:23 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2011-04-04 18:50:30 +00:00
|
|
|
url = "mirror://sourceforge/cmusphinx/${name}.tar.gz";
|
2016-12-28 03:28:07 +00:00
|
|
|
sha256 = "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp";
|
2011-04-04 18:50:23 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ swig2 python27 bison ];
|
2011-04-04 18:50:30 +00:00
|
|
|
|
2011-04-04 18:50:23 +00:00
|
|
|
meta = {
|
|
|
|
description = "Support Library for Pocketsphinx";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://cmusphinx.sourceforge.net";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.bsd2;
|
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
2011-04-04 18:50:23 +00:00
|
|
|
};
|
2014-09-21 19:21:34 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
} // (lib.optionalAttrs multipleOutputs {
|
2011-09-03 20:01:06 +00:00
|
|
|
outputs = [ "out" "lib" "headers" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $lib
|
2011-09-03 20:01:06 +00:00
|
|
|
cp -av $out/lib* $lib
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $headers
|
2011-09-03 20:01:06 +00:00
|
|
|
cp -av $out/include $headers
|
|
|
|
'';
|
|
|
|
}))
|