From e629f662fb1cef6cb9aa69c135f1a3a7cbfc6278 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 22 Jan 2024 09:53:06 +0000 Subject: [PATCH] rav1e: fix `strip` option mangling on x86_64-darwin `rav1e-0.7.1` slightly changes `strip` option construction in https://github.com/xiph/rav1e/commit/43fb165e5e07ac047dd59d9d2278bed5da95deb4 Update mangling part to restore stripping. --- pkgs/tools/video/rav1e/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/video/rav1e/default.nix b/pkgs/tools/video/rav1e/default.nix index 4f62161b0189..406276977c52 100644 --- a/pkgs/tools/video/rav1e/default.nix +++ b/pkgs/tools/video/rav1e/default.nix @@ -38,7 +38,7 @@ rustPlatform.buildRustPackage rec { # Darwin uses `llvm-strip`, which results in link errors when using `-x` to strip the asm library # and linking it with cctools ld64. postPatch = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) '' - substituteInPlace build.rs --replace 'cmd.arg("-x")' 'cmd.arg("-S")' + substituteInPlace build.rs --replace-fail '.arg("-x")' '.arg("-S")' ''; checkType = "debug";