Skip to content

Commit

Permalink
rnnoise: apply patch to fix aarch64-{linux,darwin} builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Artturin committed Apr 29, 2024
1 parent 6d09414 commit 614eb0b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pkgs/development/libraries/rnnoise/default.nix
Original file line number Diff line number Diff line change
@@ -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
}:

Expand All @@ -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;
Expand Down

0 comments on commit 614eb0b

Please sign in to comment.