gst_all_1.gst-plugins-rs: add temporary fix for cargo-c test issue

This commit is contained in:
Lily Foster
2023-06-26 07:33:44 -04:00
parent 3ae20aa58a
commit 42e6f4ca71
@@ -1,6 +1,7 @@
{ lib
, stdenv
, fetchFromGitLab
, fetchpatch
, writeText
, rustPlatform
, meson
@@ -112,6 +113,17 @@ let
) (lib.attrNames validPlugins);
invalidPlugins = lib.subtractLists (lib.attrNames validPlugins) selectedPlugins;
# TODO: figure out what must be done about this upstream - related lu-zero/cargo-c#323 lu-zero/cargo-c#138
cargo-c' = cargo-c.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or []) ++ [
(fetchpatch {
name = "cargo-c-test-rlib-fix.patch";
url = "https://github.com/lu-zero/cargo-c/commit/596c582deed419b0cf1f80b9be77ff705df20e01.diff";
hash = "sha256-GETjZwYqX7h51rxWznAg5Ojozdp1SOYnUh+iuRGA4/w=";
})
];
});
in
assert lib.assertMsg (invalidPlugins == [])
"Invalid gst-plugins-rs plugin${lib.optionalString (lib.length invalidPlugins > 1) "s"}: ${lib.concatStringsSep ", " invalidPlugins}";
@@ -165,7 +177,7 @@ stdenv.mkDerivation rec {
pkg-config
rustc
cargo
cargo-c
cargo-c'
nasm
] ++ lib.optionals enableDocumentation [
hotdoc