mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 18:34:38 +00:00
eb829035c9
broke modemmanager and some of its deps libqmi-aarch64-unknown-linux-gnu> GISCAN Qmi-1.0.gir libqmi-aarch64-unknown-linux-gnu> /build/libqmi-1.30.8/src/libqmi-glib/tmp-introspect2d8e4td2/.libs/Qmi-1.0: error while loading shared libraries: libqmi-glib.so.5: cannot open shared object file: No such file or directory libqmi-aarch64-unknown-linux-gnu> Command '['/nix/store/wr4mjr9gadvwz6c88fgz4ldzn21sxkpz-qemu-7.0.0/bin/qemu-aarch64', '/build/libqmi-1.30.8/src/libqmi-glib/tmp-introspect2d8e4td2/.libs/Qmi-1.0', '--introspect-dump=/build/libqmi-1.30.8/src/libqmi-glib/tmp-introspect2d8e4td2/functions.txt,/build/libqmi-1.30.8/src/libqmi-glib/tmp-introspect2d8e4td2/dump.xml']' returned non-zero exit status 127. libqmi-aarch64-unknown-linux-gnu> make[4]: *** [/nix/store/jwpcacx8sd4vj0ckk5wxrzn2iwcpp35s-gobject-introspection-aarch64-unknown-linux-gnu-1.72.0-dev/share/gobject-introspection-1.0/Makefile.introspection:156: Qmi-1.0.gir] Error 1
33 lines
1.4 KiB
Nix
33 lines
1.4 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPackages
|
|
, gobject-introspection-unwrapped
|
|
, targetPackages
|
|
}:
|
|
|
|
# to build, run
|
|
# `nix build ".#pkgsCross.aarch64-multiplatform.buildPackages.gobject-introspection"`
|
|
gobject-introspection-unwrapped.overrideAttrs (previousAttrs: {
|
|
pname = "gobject-introspection-wrapped";
|
|
# failure in e.g. pkgsCross.aarch64-multiplatform.polkit
|
|
# subprocess.CalledProcessError: Command '['/nix/store/...-prelink-unstable-2019-06-24/bin/prelink-rtld', '/build/source/build/tmp-introspectzp2ldkyk/PolkitAgent-1.0']' returned non-zero exit status 127.
|
|
patches = previousAttrs.patches ++ [ ./giscanner-ignore-error-return-codes-from-ldd-wrapper.patch ];
|
|
postFixup = (previousAttrs.postFixup or "") + ''
|
|
mv $dev/bin/g-ir-compiler $dev/bin/.g-ir-compiler-wrapped
|
|
mv $dev/bin/g-ir-scanner $dev/bin/.g-ir-scanner-wrapped
|
|
|
|
(
|
|
export bash="${buildPackages.bash}/bin/bash"
|
|
export emulator=${lib.escapeShellArg (stdenv.targetPlatform.emulator buildPackages)}
|
|
export buildprelink="${buildPackages.prelink}/bin/prelink-rtld"
|
|
|
|
export targetgir="${lib.getDev targetPackages.gobject-introspection-unwrapped}"
|
|
|
|
substituteAll "${./wrappers/g-ir-compiler.sh}" "$dev/bin/g-ir-compiler"
|
|
substituteAll "${./wrappers/g-ir-scanner.sh}" "$dev/bin/g-ir-scanner"
|
|
chmod +x "$dev/bin/g-ir-compiler"
|
|
chmod +x "$dev/bin/g-ir-scanner"
|
|
)
|
|
'';
|
|
})
|