libglycin{,-gtk4}: fix cross compilation, enable strictDeps (#523487)

This commit is contained in:
Doron Behar
2026-05-30 19:58:26 +00:00
committed by GitHub
2 changed files with 14 additions and 0 deletions
@@ -79,6 +79,9 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = ''
patchShebangs \
build-aux/crates-version.py
substituteInPlace libglycin/meson.build --replace-fail \
"cargo_output = cargo_target_dir / rust_target" \
"cargo_output = cargo_target_dir / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target"
'';
postFixup = ''
@@ -86,6 +89,10 @@ stdenv.mkDerivation (finalAttrs: {
moveToOutput "share/doc" "$devdoc"
'';
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec;
strictDeps = true;
meta = {
description = "C-Bindings to convert glycin frames to GDK Textures";
homepage = "https://gitlab.gnome.org/GNOME/glycin";
+7
View File
@@ -94,6 +94,9 @@ stdenv.mkDerivation (finalAttrs: {
postPatch = ''
patchShebangs \
build-aux/crates-version.py
substituteInPlace libglycin/meson.build --replace-fail \
"cargo_output = cargo_target_dir / rust_target" \
"cargo_output = cargo_target_dir / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target"
'';
postFixup = ''
@@ -101,6 +104,10 @@ stdenv.mkDerivation (finalAttrs: {
moveToOutput "share/doc" "$devdoc"
'';
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec;
strictDeps = true;
passthru = {
updateScript =
let