libglycin{,-gtk4}: fix cross compilation, enable strictDeps (#523487)
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user