diff --git a/pkgs/development/libraries/flite/default.nix b/pkgs/development/libraries/flite/default.nix index f9e4720f6430..1db8a9fbe2f3 100644 --- a/pkgs/development/libraries/flite/default.nix +++ b/pkgs/development/libraries/flite/default.nix @@ -1,28 +1,28 @@ { stdenv, fetchFromGitHub, alsaLib }: -stdenv.mkDerivation { - name = "flite-2.1.0"; +stdenv.mkDerivation rec { + pname = "flite"; + version = "2.2"; src = fetchFromGitHub { - owner = "festvox"; - repo = "flite"; - rev = "d673f65b2c4a8cd3da7447079309a6dc4bcf1a5e"; - sha256 = "1kx43jvdln370590gfjhxxz3chxfi6kq18504wmdpljib2l0grjq"; + owner = "festvox"; + repo = "flite"; + rev = "v${version}"; + sha256 = "1n0p81jzndzc1rzgm66kw9ls189ricy5v1ps11y0p2fk1p56kbjf"; }; - buildInputs = [ alsaLib ]; + buildInputs = stdenv.lib.optionals stdenv.isLinux [ alsaLib ]; configureFlags = [ "--enable-shared" - "--with-audio=alsa" - ]; + ] ++ stdenv.lib.optionals stdenv.isLinux [ "--with-audio=alsa" ]; enableParallelBuilding = true; - meta = { + meta = with stdenv.lib; { description = "A small, fast run-time speech synthesis engine"; homepage = "http://www.festvox.org/flite/"; - license = stdenv.lib.licenses.free; - platforms = stdenv.lib.platforms.linux; + license = licenses.bsdOriginal; + platforms = platforms.all; }; }