nixpkgs/pkgs/development/libraries/sphinxbase/default.nix

39 lines
887 B
Nix
Raw Normal View History

{ stdenv
, fetchurl
, bison
, pkgconfig
2016-12-28 06:28:07 +03:00
, python27 # >= 2.6
, swig2 # 2.0
, multipleOutputs ? false #Uses incomplete features of nix!
}:
stdenv.mkDerivation (rec {
2016-12-28 06:28:07 +03:00
name = "sphinxbase-5prealpha";
src = fetchurl {
url = "mirror://sourceforge/cmusphinx/${name}.tar.gz";
2016-12-28 06:28:07 +03:00
sha256 = "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp";
};
2016-12-28 06:28:07 +03:00
buildInputs = [ swig2 python27 pkgconfig bison ];
meta = {
description = "Support Library for Pocketsphinx";
homepage = http://cmusphinx.sourceforge.net;
2014-09-21 23:21:34 +04:00
license = stdenv.lib.licenses.bsd2;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
2014-09-21 23:21:34 +04:00
} // (stdenv.lib.optionalAttrs multipleOutputs {
outputs = [ "out" "lib" "headers" ];
postInstall = ''
mkdir -p $lib
cp -av $out/lib* $lib
mkdir -p $headers
cp -av $out/include $headers
'';
}))