| 17 Aug 2025 |
QuadRadical (Ping) | hmm okay | 20:18:11 |
Grimmauld (any/all) | diff --git a/pkgs/development/libraries/gobject-introspection/default.nix b/pkgs/development/libraries/gobject-introspection/default.nix
index d461983e8d06..b58b8f2b70ed 100644
--- a/pkgs/development/libraries/gobject-introspection/default.nix
+++ b/pkgs/development/libraries/gobject-introspection/default.nix
@@ -2,7 +2,7 @@
stdenv,
lib,
fetchurl,
- fetchpatch,
+ zlib,
glib,
flex,
bison,
@@ -103,6 +103,7 @@ stdenv.mkDerivation (finalAttrs: {
buildInputs = [
(python3.withPackages pythonModules)
+ zlib
];
nativeCheckInputs = lib.optionals stdenv.hostPlatform.isDarwin [
seems to fix gobject-introspection on cross, but i'll not dig into that today
| 20:18:51 |
Grimmauld (any/all) | (the fetchpatch was unused) | 20:19:03 |
QuadRadical (Ping) | so do you suggest i take it out of nativeCheckInputs and put it into nativeBuildInputs? | 20:19:19 |
Artturin | cmakeFlags = [
(lib.cmakeBool "BUILD_TESTING" finalAttrs.doCheck)
];
nix-repl> pkgsCross.aarch64-multiplatform.iniparser.cmakeFlags
[
"-DBUILD_TESTING:BOOL=TRUE"
...
nix-repl> pkgsCross.aarch64-multiplatform.iniparser.doCheck
false
| 20:19:24 |
Artturin | The conditional is wrong | 20:19:34 |
Artturin | it should be finalAttrs.finalPackage.doCheck | 20:19:41 |
QuadRadical (Ping) | ahh | 20:19:56 |
Grimmauld (any/all) | its an easy mistake, i suspect i have a couple packages where i fell into the same trap | 20:20:15 |
Artturin | because finalAttrs does not contain the change done to doCheck in mkDerivation https://github.com/NixOS/nixpkgs/blob/a81d50424b14ddf51ad010ef01cd73476afe95d0/pkgs/stdenv/generic/make-derivation.nix#L322 | 20:20:18 |
Artturin | https://github.com/NixOS/nixpkgs/pull/434550 | 20:24:59 |
Grimmauld (any/all) | yep, you caught me, apparmor-parser is my packager lol | 20:25:56 |
Alyssa Ross | In reply to @artturin:matrix.org https://github.com/NixOS/nixpkgs/pull/434550 Pretty sure this won't eval | 20:26:46 |
Alyssa Ross | If you make outputs conditional on it you can infrec last I checked | 20:27:01 |
Grimmauld (any/all) | oh shit i did it twice, i made the same mistake in z3... | 20:27:11 |
Artturin | Worked in the previous treewide https://github.com/NixOS/nixpkgs/pull/271241 | 20:27:18 |
Artturin | But let's see | 20:27:20 |
Alyssa Ross | It failed | 20:27:26 |
Artturin | oh :P | 20:27:34 |
Artturin | Smh of course it's cuda | 20:28:08 |
Grimmauld (any/all) | /nix/store/w6948hrs887n51sfj6shmpsgrcj62xgi-qemu-user-10.0.3/bin/qemu-aarch64: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory - turns out it wasn't gobject-introspection itself failing to laod libz, but rather a qemu it somehow pulls along the way? This is pain | 20:30:13 |
emily | it's always CUDA | 20:30:18 |
QuadRadical (Ping) | lint also fairs seeminlgy, due to infinite recursion/ | 20:30:59 |
QuadRadical (Ping) | * lint also fairs seeminlgy, due to infinite recursion? | 20:31:02 |
Artturin | One way to fix it is to do doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform, then finalAttrs.doCheck will be right | 20:31:55 |
Artturin | Doing that | 20:38:16 |
Artturin | As it's what should be done anyways so the conditional in mkDerivation could be removed at some point like ericson has wanted since at least 2018 | 20:39:11 |
QuadRadical (Ping) | @Artturin do you mind me bugging you with one more question? | 21:34:55 |
QuadRadical (Ping) | why would this fail to cross compile? https://github.com/chuangzhu/nixpkgs-gnome-mobile/blob/master/overlay.nix | 21:35:02 |
QuadRadical (Ping) | error: builder for '/nix/store/ckxibjjxdwpgwbzc76hxgzz8gjq8d5rm-gnome-user-share-aarch64-unknown-linux-gnu-48.1.drv' failed with exit code 1;
last 25 log lines:
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libgobject-2.0.so when searching for -lgobject-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libgobject-2.0.so when searching for -lgobject-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libgobject-2.0.so when searching for -lgobject-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: cannot find -lgobject-2.0: No such file or directory
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libgobject-2.0.so when searching for -lgobject-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libgobject-2.0.so when searching for -lgobject-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libgobject-2.0.so when searching for -lgobject-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libgobject-2.0.so when searching for -lgobject-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libglib-2.0.so when searching for -lglib-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libglib-2.0.so when searching for -lglib-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libglib-2.0.so when searching for -lglib-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libglib-2.0.so when searching for -lglib-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: cannot find -lglib-2.0: No such file or directory
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libglib-2.0.so when searching for -lglib-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libglib-2.0.so when searching for -lglib-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libglib-2.0.so when searching for -lglib-2.0
> /nix/store/wi0nl3i48dl27dalzrrlq4n9a6mrl63y-binutils-2.44/bin/ld: skipping incompatible /nix/store/c71qvj1lj7wwq8rghxczq909ymdgf1sd-glib-aarch64-unknown-linux-gnu-2.84.3/lib/libglib-2.0.so when searching for -lglib-2.0
> collect2: error: ld returned 1 exit status
>
>
> error: could not compile `gnome-user-share` (bin "gnome-user-share") due to 1 previous error
> [92/93] Merging translations for data/gnome-user-share-webdav.desktop
> FAILED: src/gnome-user-share-webdav
> /nix/store/ih779chzzag1nm91fgnrndml4mghm3la-coreutils-9.7/bin/env /nix/store/as0xa9521nz18lgw9a5q3r3x5r4b15pz-aarch64-unknown-linux-gnu-cargo-1.88.0/bin/cargo build --manifest-path /build/gnome-user-share-48.1/Cargo.toml --target-dir /build/gnome-user-share-48.1/build/src && cp src/debug/gnome-user-share src/gnome-user-share-webdav
> ninja: build stopped: subcommand failed.
For full logs, run 'nix log /nix/store/ckxibjjxdwpgwbzc76hxgzz8gjq8d5rm-gnome-user-share-aarch64-unknown-linux-gnu-48.1.drv'.
error: 1 dependencies of derivation '/nix/store/jg6mx2ng9y63cdjrl3f991swvsqhlmga-gnome-control-center-aarch64-unknown-linux-gnu-48.4.drv' failed to build
error: 1 dependencies of derivation '/nix/store/n2qbfsfw4lwb6ky1zkvi5m54zhmnwjc8-gnome-user-share-aarch64-unknown-linux-gnu-48.1_fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9rndznycz0kcq13g4va370x5iimrqnks-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/wwia1gqbbclmqq4y39f4smlmi3nagks5-nautilus-aarch64-unknown-linux-gnu-48.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/cka5fq4qvqmv8x00qqabfhlxsbg9mbdr-system-generators.drv' failed to build
error (ignored): error: cannot unlink 'build' in directory '/nix/var/nix/builds/nix-build-qtdeclarative-6.9.1.drv-1/qtdeclarative-everywhere-src-6.9.1': Directory not empty
error (ignored): error: cannot unlink 'libgtk.a.p' in directory '/nix/var/nix/builds/nix-build-gtk4-4.18.6.drv-1/gtk-4.18.6/build/gtk': Directory not empty
error: 1 dependencies of derivation '/nix/store/ygxh4ni63fdfww9m6c4piimh88wm735m-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/29lszfzzmmrpvxs1kwm99p0gillady41-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/n721g3kf7w9dv3ygvzpc6g4ara9qq3bn-nixos-system-quadphone-25.11.20250812.005433b.drv' failed to build
error: 1 dependencies of derivation '/nix/store/w27dv9abamsfn1mwwm64rqvway1qgh1c-image.drv' failed to build
| 21:35:09 |