| 28 Oct 2025 |
Anders | Reposting here: I am working on readding support for relibc and redoxos to nixpkgs. That requires adding support for the relibc library which is a replacement for libc compatible with redox. https://github.com/NixOS/nixpkgs/pull/453786
But I run into an infinite recusion problem when I try nix-shell -A pkgsCross.x86_64-unknown-redox.mkShell.
… while evaluating the attribute 'stdenv.cc.targetPrefix'
at /home/anderscs/src/nixpkgs/pkgs/stdenv/generic/default.nix:209:15:
208|
209| inherit cc hasCC;
| ^
210|
… while evaluating 'targetPackages.stdenv.cc' to select 'targetPrefix' on it
at /home/anderscs/src/nixpkgs/pkgs/development/compilers/rust/rustc.nix:55:14:
54| stdenv.mkDerivation (finalAttrs: {
55| pname = "${targetPackages.stdenv.cc.targetPrefix}rustc";
| ^
56| inherit version;
error: infinite recursion encountered
at /home/anderscs/src/nixpkgs/pkgs/development/compilers/rust/rustc.nix:55:14:
54| stdenv.mkDerivation (finalAttrs: {
55| pname = "${targetPackages.stdenv.cc.targetPrefix}rustc";
| ^
It is a circular dependency which should be solvable.
How do I best solve this?
| 07:39:44 |
Llamato | Thank you for the quick response.
Regarding CC not being found. How could that be fixed?
Regarding Servo. I tried it but that seems to have issues with the rust bindings. Saying it can not find bindgen. | 08:05:11 |
Grimmauld (any/all) |
How could that be fixed?
either patching the makefiles to find the correct CC, or exporting some environment variable shenanigans. I suspect this may be an issue too: https://github.com/NixOS/nixpkgs/blob/6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce/pkgs/by-name/li/libparserutils/package.nix#L21 Build system should probably be in native inputs.
| 08:25:34 |
Grimmauld (any/all) | but this is messy, i didn't see netsurf used a dedicated package for build system abstraction, makes this super ugly | 08:26:10 |
Grimmauld (any/all) | *
How could that be fixed?
either patching the makefiles to find the correct CC, or exporting some environment variable shenanigans. I suspect this may be an issue too: https://github.com/NixOS/nixpkgs/blob/6a08e6bb4e46ff7fcbb53d409b253f6bad8a28ce/pkgs/by-name/li/libparserutils/package.nix#L21 Build system should probably be in native inputs, not sure.
| 08:26:32 |
Llamato | Ok so good news. After spending way to much time on this I got dillo to compile and x11 to run. The issue is my mouse does not work in x11 and ideally I would like to use the labwc compositor under wayland, that I also got to run. The mouse works there so that is good. However the one thing I could not get running in the chain is xwayland. | 15:37:12 |
Grimmauld (any/all) | In reply to @llamato:matrix.org Ok so good news. After spending way to much time on this I got dillo to compile and x11 to run. The issue is my mouse does not work in x11 and ideally I would like to use the labwc compositor under wayland, that I also got to run. The mouse works there so that is good. However the one thing I could not get running in the chain is xwayland. Does xwayland not run or not build? | 17:34:57 |
Llamato | It does not build | 17:39:14 |
| 29 Oct 2025 |
insipx | Hey all! What’s the state of building swift libraries with nix on Darwin, does it work with the nix Xcode sdk? | 01:06:47 |
insipx | * Hey all! What’s the state of building swift libraries with nix on Darwin, does it work with the xcode sdk in nixpkgs? | 01:41:13 |
Randy Eckenrode | Swift 5.10.1 is packaged. It works with the SDK in nixpkgs. If the question is about cross-compilation, cross to Darwin from Linux is not currently supported. | 03:13:53 |
Randy Eckenrode | There are some rough edges, but it’s gotten better. I plan to update it to 6.2 (or 6.3) for 26.05. That will introduce a new Swift expression that should be easier to maintain and work better. | 03:15:31 |
insipx | Cross from Linux would be amazing ofc, but good to hear that 5.10 is packaged ! | 05:22:00 |
| Benno Fünfstück joined the room. | 13:19:30 |
| 31 Oct 2025 |
| Theo Paris joined the room. | 01:55:13 |
| 2 Nov 2025 |
| backtail joined the room. | 13:14:37 |
| 4 Nov 2025 |
| Alex Stephan joined the room. | 20:04:58 |
| 5 Nov 2025 |
| p2p joined the room. | 11:06:53 |
bake.monorail | hi everyone, I just create my first PR to improve a bit uclibc-ng. feedback appreciated: https://github.com/NixOS/nixpkgs/pull/458935 | 21:01:48 |
| 6 Nov 2025 |
bake.monorail | * hi everyone, I just created my first PR to improve a bit uclibc-ng. feedback appreciated: https://github.com/NixOS/nixpkgs/pull/458935 | 04:34:00 |
Sandro | What do people think about merging https://github.com/NixOS/nixpkgs/pull/443234 ? | 15:23:50 |
| niklaskorz joined the room. | 16:15:24 |
| 7 Nov 2025 |
alexfmpe | huh libffi is acting funny in openbsd
$ l $(nix-build -A pkgsCross.gnu64.libffi)/lib
total 84K
dr-xr-xr-x 1 root root 88 jan 1 1970 .
dr-xr-xr-x 1 root root 16 jan 1 1970 ..
-r-xr-xr-x 2 root root 957 jan 1 1970 libffi.la
lrwxrwxrwx 13 root root 15 jan 1 1970 libffi.so -> libffi.so.8.2.0
lrwxrwxrwx 13 root root 15 jan 1 1970 libffi.so.8 -> libffi.so.8.2.0
-r-xr-xr-x 2 root root 70K jan 1 1970 libffi.so.8.2.0
$ l $(nix-build -A pkgsCross.x86_64-freebsd.libffi)/lib
total 56K
dr-xr-xr-x 1 root root 88 jan 1 1970 .
dr-xr-xr-x 1 root root 6 jan 1 1970 ..
-r-xr-xr-x 2 root root 971 jan 1 1970 libffi.la
lrwxrwxrwx 13 root root 15 jan 1 1970 libffi.so -> libffi.so.8.2.0
lrwxrwxrwx 13 root root 15 jan 1 1970 libffi.so.8 -> libffi.so.8.2.0
-r-xr-xr-x 2 root root 43K jan 1 1970 libffi.so.8.2.0
$ l $(nix-build -A pkgsCross.x86_64-openbsd.libffi)/lib
total 48K
dr-xr-xr-x 1 root root 46 jan 1 1970 .
dr-xr-xr-x 1 root root 6 jan 1 1970 ..
-r-xr-xr-x 2 root root 966 jan 1 1970 libffi.la
-r-xr-xr-x 2 root root 43K jan 1 1970 libffi.so.10.0
| 08:39:37 |
alexfmpe | where'd the symlinks go | 08:40:03 |
alexfmpe | zlib/lib is the same on gnu64 and openbsd | 08:53:23 |
Alyssa Ross | version number is different too | 12:23:03 |
alexfmpe | what's that version number from though? | 12:25:29 |
alexfmpe | https://github.com/libffi/libffi/releases | 12:25:31 |
Mr Argoz | Hi | 12:59:51 |
| @awwpotato:envs.net changed their display name from awwpotato (she/her) to -> @da157:catgirl.cloud. | 18:30:14 |