rnnoise: apply patch to fix aarch64-{linux,darwin} builds

This commit is contained in:
Artturin 2024-04-29 23:51:04 +03:00
parent 6d09414649
commit 614eb0b602

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, fetchzip, autoreconfHook, writeScript
{ stdenv, lib, fetchurl, fetchzip, autoreconfHook, writeScript, fetchpatch
, modelUrl ? "", modelHash ? "" # Allow overriding the model URL and hash
}:
@ -24,6 +24,14 @@ in stdenv.mkDerivation (finalAttrs: {
hash = "sha256-Qaf+0iOprq7ILRWNRkBjsniByctRa/lFVqiU5ZInF/Q=";
};
patches = [
# remove when updating
(fetchpatch {
url = "https://github.com/xiph/rnnoise/commit/372f7b4b76cde4ca1ec4605353dd17898a99de38.patch";
hash = "sha256-Dzikb59hjVxd1XIEj/Je4evxtGORkaNcqE+zxOJMSvs=";
})
];
model = fetchurl {
url = model_url;
hash = model_hash;