Unverified Commit eb3c0364 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #269376 from aaronjheng/ekho

ekho: 5.8.2 -> 9.0
parents 1b99d72c 42baf03d
Loading
Loading
Loading
Loading
+40 −24
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, pkg-config
, libsndfile, libpulseaudio
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, autoconf
, automake
, libtool
, libsndfile
, libpulseaudio
, espeak-ng
, sonic
, utf8cpp
, AudioUnit
}:

let
  version = "5.8.2";
in stdenv.mkDerivation rec {
stdenv.mkDerivation rec {
  pname = "ekho";
  inherit version;
  version = "9.0";

  src = fetchFromGitHub {
    owner = "hgneng";
    repo = "ekho";
    rev = "v${version}";
    hash = "sha256-VYN9tR3BJXd3UA0V5vqQJNItJe1e1knZ+S7tLeaeYYk=";
  };

  preConfigure = ''
    ./autogen.sh
  '';

  CXXFLAGS = [
    "-O0"
    "-I${lib.getDev utf8cpp}/include/utf8cpp"
  ];

  nativeBuildInputs = [ pkg-config autoconf automake libtool ];

  buildInputs = [ libsndfile libpulseaudio espeak-ng sonic utf8cpp ]
    ++ lib.optionals stdenv.isDarwin [ AudioUnit ];

  meta = with lib; {
    description = "Chinese text-to-speech software";
@@ -19,21 +49,7 @@ in stdenv.mkDerivation rec {
      Yuan Dynasty) and Korean (in trial).
    '';
    license = licenses.gpl2Plus;
    platforms      = platforms.linux;
    hydraPlatforms = [];
    platforms = platforms.linux ++ platforms.darwin;
    maintainers = with maintainers; [ aaronjheng ];
  };

  src = fetchurl {
    url = "mirror://sourceforge/e-guidedog/Ekho/${version}/${pname}-${version}.tar.xz";
    sha256 = "0ym6lpcpsvwvsiwlzkl1509a2hljwcw7synngrmqjq1n49ww00nj";
  };

  preConfigure = with lib; ''
    NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE ${optionalString stdenv.is64bit "-D_x86_64"}"
    NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -DEKHO_DATA_PATH=\"$out/share/ekho-data\""
  '';

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [ libsndfile libpulseaudio ];
}
+3 −1
Original line number Diff line number Diff line
@@ -31310,7 +31310,9 @@ with pkgs;
  oed = callPackage ../applications/editors/oed { };
  ekho = callPackage ../applications/audio/ekho { };
  ekho = callPackage ../applications/audio/ekho {
    inherit (darwin.apple_sdk.frameworks) AudioUnit;
  };
  electron-cash = libsForQt5.callPackage ../applications/misc/electron-cash { };