3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/sphinxbase/default.nix

37 lines
832 B
Nix
Raw Normal View History

{ stdenv
, fetchurl
, bison
, pkgconfig
, multipleOutputs ? false #Uses incomplete features of nix!
}:
stdenv.mkDerivation (rec {
2014-09-21 20:21:34 +01:00
name = "sphinxbase-0.8";
src = fetchurl {
url = "mirror://sourceforge/cmusphinx/${name}.tar.gz";
2014-09-21 20:21:34 +01:00
sha256 = "1a3c91g6rcfb2k8qyfhnd7s68ds6pxwv61xfp0ai1arbhx28jw2m";
};
buildInputs = [ pkgconfig bison ];
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;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
2014-09-21 20:21:34 +01: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
'';
}))