[Backport release-25.05] video-trimmer: fix cross compilation (#438043)

This commit is contained in:
Seth Flynn
2025-09-02 17:55:29 -04:00
committed by GitHub

View File

@@ -35,6 +35,12 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-3ycc4jXneGsz9Jp9Arzf224JPAKM+PxUkitWcIXre8Y=";
};
postPatch = ''
substituteInPlace build-aux/cargo.sh --replace-fail \
'cp "$CARGO_TARGET_DIR"/' \
'cp "$CARGO_TARGET_DIR"/${stdenv.hostPlatform.rust.cargoShortTarget}/'
'';
nativeBuildInputs = [
pkg-config
meson
@@ -60,6 +66,9 @@ stdenv.mkDerivation (finalAttrs: {
gst_all_1.gst-plugins-bad
];
# For https://gitlab.gnome.org/YaLTeR/video-trimmer/-/blob/cf64e8dea345bcd991db29a3f862a9277c71fe81/build-aux/cargo.sh#L19
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec;
doCheck = true;
strictDeps = true;