1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-21 05:25:38 +00:00
nixpkgs/pkgs/development/libraries/sphinxbase/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

40 lines
914 B
Nix

{ stdenv
, fetchurl
, bison
, pkgconfig
, python27 # >= 2.6
, swig2 # 2.0
, multipleOutputs ? false #Uses incomplete features of nix!
}:
stdenv.mkDerivation (rec {
name = "sphinxbase-5prealpha";
src = fetchurl {
url = "mirror://sourceforge/cmusphinx/${name}.tar.gz";
sha256 = "0vr4k8pv5a8nvq9yja7kl13b5lh0f9vha8fc8znqnm8bwmcxnazp";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ swig2 python27 bison ];
meta = {
description = "Support Library for Pocketsphinx";
homepage = http://cmusphinx.sourceforge.net;
license = stdenv.lib.licenses.bsd2;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
};
} // (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
'';
}))