From e96d684b8f97176207ef8a327f5f62a0ff8e303e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 5 May 2022 01:45:11 +0000 Subject: [PATCH] rhvoice: 1.6.0 -> 1.8.0 https://github.com/RHVoice/RHVoice/releases/tag/1.8.0 --- pkgs/applications/audio/rhvoice/default.nix | 4 ++-- .../audio/rhvoice/honor_nix_environment.patch | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/applications/audio/rhvoice/default.nix b/pkgs/applications/audio/rhvoice/default.nix index f72b8404104..af2ce6ae25b 100644 --- a/pkgs/applications/audio/rhvoice/default.nix +++ b/pkgs/applications/audio/rhvoice/default.nix @@ -12,14 +12,14 @@ stdenv.mkDerivation rec { pname = "rhvoice"; - version = "1.6.0"; + version = "1.8.0"; src = fetchFromGitHub { owner = "RHVoice"; repo = "RHVoice"; rev = version; fetchSubmodules = true; - hash = "sha256-5iq+St/fqGMeJu2XaiCmgzBpxqE9IQLnKlfZErd1fPs="; + hash = "sha256-G5886rjBaAp0AXcr07O0q7K1OXTayfIbd4zniKwDiLw="; }; patches = [ diff --git a/pkgs/applications/audio/rhvoice/honor_nix_environment.patch b/pkgs/applications/audio/rhvoice/honor_nix_environment.patch index 1c0c9d3ee45..fed5a2ea5e1 100644 --- a/pkgs/applications/audio/rhvoice/honor_nix_environment.patch +++ b/pkgs/applications/audio/rhvoice/honor_nix_environment.patch @@ -1,17 +1,22 @@ diff --git a/SConstruct b/SConstruct -index b29168f..d507b95 100644 +index 3ad4d9a..fb02365 100644 --- a/SConstruct +++ b/SConstruct -@@ -93,6 +93,8 @@ def CheckWiX(context): +@@ -94,11 +94,8 @@ def CheckWiX(context): + return result def get_spd_module_dir(): - env = Environment() -+ env.PrependENVPath("PATH", os.environ["PATH"]) -+ env["ENV"]["PKG_CONFIG_PATH"]=os.environ["PKG_CONFIG_PATH"] - return env.ParseConfig("pkg-config speech-dispatcher --variable=modulebindir", passthru) +- env = Environment() +- try: +- return env.ParseConfig("pkg-config speech-dispatcher --variable=modulebindir", passthru) +- except: +- return False ++ # cannot write to ${speechd}/libexec/speech-dispatcher-modules ++ return os.path.join(os.environ["out"], "libexec/speech-dispatcher-modules") def validate_spd_version(key,val,env): -@@ -202,9 +204,9 @@ def create_base_env(user_vars): + m=re.match(r"^\d+\.\d+",val) +@@ -208,9 +205,9 @@ def create_base_env(user_vars): env_args["package_name"]="RHVoice" env_args["CPPDEFINES"]=[("RHVOICE","1")] env=Environment(**env_args)