ekho: use finalAttrs (#340454)

This commit is contained in:
Pol Dellaiera 2024-09-09 19:34:00 +02:00 committed by GitHub
commit 50878a3258
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 9 deletions

View File

@ -10,17 +10,17 @@
, espeak-ng
, sonic
, utf8cpp
, AudioUnit
, darwin
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "ekho";
version = "9.0";
src = fetchFromGitHub {
owner = "hgneng";
repo = "ekho";
rev = "v${version}";
rev = "v${finalAttrs.version}";
hash = "sha256-VYN9tR3BJXd3UA0V5vqQJNItJe1e1knZ+S7tLeaeYYk=";
};
@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config autoconf automake libtool ];
buildInputs = [ libsndfile libpulseaudio espeak-ng sonic utf8cpp ]
++ lib.optionals stdenv.isDarwin [ AudioUnit ];
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.AudioUnit ];
meta = with lib; {
description = "Chinese text-to-speech software";
@ -51,5 +51,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus;
platforms = platforms.linux ++ platforms.darwin;
maintainers = with maintainers; [ aaronjheng ];
mainProgram = "ekho";
};
}
})

View File

@ -29508,10 +29508,6 @@ with pkgs;
oed = callPackage ../applications/editors/oed { };
ekho = callPackage ../applications/audio/ekho {
inherit (darwin.apple_sdk.frameworks) AudioUnit;
};
electron-cash = libsForQt5.callPackage ../applications/misc/electron-cash { };
electrum = libsForQt5.callPackage ../applications/misc/electrum { };