larynx: init at 0.0.2

This commit is contained in:
Martin Weinelt 2023-01-12 05:29:59 +01:00
parent 21453aa6d8
commit bd383edb36
No known key found for this signature in database
GPG key ID: 87C1E9888F856759
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,60 @@
{ lib
, stdenv
, fetchFromGitHub
, cmake
, pkgconfig
, espeak-ng
, onnxruntime
, pcaudiolib
, larynx-train
}:
let
pname = "larynx";
version = "0.0.2";
in
stdenv.mkDerivation {
inherit pname version;
src = fetchFromGitHub {
owner = "rhasspy";
repo = "larynx2";
rev = "refs/tags/v${version}";
hash = "sha256-6SZ1T2A1DyVmBH2pJBHJdsnniRuLrI/dthRTRRyVSQQ=";
};
sourceRoot = "source/src/cpp";
postPatch = ''
substituteInPlace CMakeLists.txt \
--replace "/usr/local/include/onnxruntime" "${onnxruntime}"
'';
nativeBuildInputs = [
cmake
pkgconfig
];
buildInputs = [
espeak-ng
onnxruntime
pcaudiolib
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
install -m 0755 larynx $out/bin
runHook postInstall
'';
meta = with lib; {
changelog = "https://github.com/rhasspy/larynx2/releases/tag/v${version}";
description = "A fast, local neural text to speech system";
homepage = "https://github.com/rhasspy/larynx2";
license = licenses.mit;
maintainers = with maintainers; [ hexa ];
};
}

View file

@ -9100,6 +9100,8 @@ with pkgs;
jump = callPackage ../tools/system/jump {};
larynx = callPackage ../tools/audio/larynx { };
latex2html = callPackage ../tools/misc/latex2html { };
lazycli = callPackage ../tools/misc/lazycli { };