Martin Weinelt 2023-10-23 01:06:42 +02:00
parent 94ecc3da74
commit 20550edf35
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -7,6 +7,7 @@
, pkg-config , pkg-config
# runtime # runtime
, fmt
, onnxruntime , onnxruntime
, pcaudiolib , pcaudiolib
, piper-phonemize , piper-phonemize
@ -18,22 +19,26 @@
stdenv.mkDerivation (finalAttrs: { stdenv.mkDerivation (finalAttrs: {
pname = "piper"; pname = "piper";
version = "1.2.0"; version = "2023.9.27-1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "rhasspy"; owner = "rhasspy";
repo = "piper"; repo = "piper";
rev = "refs/tags/v${finalAttrs.version}"; rev = "refs/tags/${finalAttrs.version}";
hash = "sha256-6WNWqJt0PO86vnf+3iHaRRg2KwBOEj4aicmB+P2phlk="; hash = "sha256-U7yOiqNvE0WqZB8qaKf3U7gnTJ6q+9W5lviW79b6h/o=";
}; };
sourceRoot = "${finalAttrs.src.name}/src/cpp";
nativeBuildInputs = [ nativeBuildInputs = [
cmake cmake
pkg-config pkg-config
]; ];
cmakeFlags = [
"-DFMT_DIR=${fmt}"
"-DSPDLOG_DIR=${spdlog.src}"
"-DPIPER_PHONEMIZE_DIR=${piper-phonemize}"
];
buildInputs = [ buildInputs = [
onnxruntime onnxruntime
pcaudiolib pcaudiolib