orivej has joined #nixos-aarch64
<andi-> just talked to samueldr about `interpreter` patching. There are a bunch of hardcoded references to things like "${glibc.out}/lib/ld-linux-*.so.2" which will break for example on aarch64. It would probably make sense to replace that treewide with an "$(cat $NIX_CC/nix-support/dynamic-linker)". Would that make sense?
<samueldr> maybe in #nixos-dev ?
<andi-> true, let me repost it there
<samueldr> :)
<Dezgeg> well, many of those are probably patching pre-compiled binaries which wouldn't work on non-x86 anyway
<andi-> Dezgeg: fun fact, I did come across that while porting openjdk bootstrap foo which is also pre-compiled for aarch64 ;-)
<andi-> but yes, good point
<Dezgeg> heh
<Dezgeg> but yes, having a consistent way of doing that is always good
<samueldr> what about when the ld-linux*.so.X changes number?
<samueldr> is this expected in the future?
<samueldr> and would it still work with earlier binaries?
<Dezgeg> probably every distro in eistence would break
<samueldr> guessing it wouldn't if that's a sonma
<samueldr> soname*
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 248 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 248 seconds]
orivej has joined #nixos-aarch64
jtojnar has quit [Read error: Connection reset by peer]
jtojnar has joined #nixos-aarch64
orivej has quit [Ping timeout: 252 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #nixos-aarch64
orivej has quit [Ping timeout: 248 seconds]
orivej has joined #nixos-aarch64
jtojnar has quit [Ping timeout: 264 seconds]
vcunat has joined #nixos-aarch64
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #nixos-aarch64
buovjaga has joined #nixos-aarch64
<buovjaga> Can I build an aarch64 SD image using the NixOS demo Virtualbox? I tried with nix-build '<nixpkgs/nixos>' -I nixos-config=nixos/modules/installer/cd-dvd/sd-image-aarch64.nix -A config.system.build.sdImage but it says Nix search path entry does not exist.
<vcunat> buovjaga: and does ./nixos/modules/installer/cd-dvd/sd-image-aarch64.nix exist?
<buovjaga> no :(
<buovjaga> so I have to clone https://github.com/NixOS/nixpkgs.git first?
<makefu> i am also quite sure that the sdImage build currently only works on an aarch64 system, no?
<Dezgeg> yes
<vcunat> you probably have a channel locally, so you could use that instead of the clone, but as noted, you currently need an aarch64 system first (e.g. as a remote builder)
<buovjaga> urgh, so I would have to emulate it
<buovjaga> thanks, I'm very new to Nix
<Dezgeg> what do you plan to do? does a prebuilt one work
<buovjaga> I was planning to build an image with F2FS instead of ext4
<buovjaga> prebuilt worked fine on RPi 3 :) thanks for that
<Dezgeg> it's going to be a hard task to turn the builder to f2fs
<buovjaga> I guess I'll forget about the filesystem dreams for now and focus on more relevant stuff
<Dezgeg> I guess you could rsync or nixos-install
<buovjaga> I found an IRC log where you advise using another SD to do the switch :)
<Dezgeg> yes
vcunat has quit [Quit: Leaving.]
<buovjaga> Ahh, I did a "Baby's first nixos-rebuild" and it worked smoothly (mounting folder as tmpfs) :) Great to be finally using this after so much lurking. I dream that someday LibreOffice infra could switch to Nix (using Salt now).
jtojnar has joined #nixos-aarch64
jtojnar has quit [Remote host closed the connection]
jtojnar has joined #nixos-aarch64
arianvp2 has joined #nixos-aarch64
<arianvp2> hmm
orivej has quit [Ping timeout: 248 seconds]
buovjaga has quit [Remote host closed the connection]
arianvp2 has left #nixos-aarch64 [#nixos-aarch64]