<flokli>
blackriversoftwa: dropped some comments. also, eval fails
<blackriversoftwa>
@flokli yeah just saw, it breaks the non-cross-compiled build. Need to make the hack only apply when `buildSystem != hostSystem`
<blackriversoftwa>
Also need to hook my Pi back up and actually test it
Thra11 has joined #nixos-aarch64
<flokli>
blackriversoftwa: just to make sure I understand correctly
<flokli>
The pi is using some native-built image, and you nix-copy-closure the cross one over?
<flokli>
s/one/nix/
<blackriversoftwa>
flokli no I have a local nix expression that builds the nix installer tarball the same way that `release.nix` from the nix repo does
<blackriversoftwa>
So I make a tarball of the cross-built nix and the installer script, copy that over to the pi, and run it
<blackriversoftwa>
and it fails (before this patch) at the step of adding nix channels, because when nix-channel tries to fetch it uses the tools from config.nix
<flokli>
blackriversoftwa: and you can still crosscompile all of that?
<blackriversoftwa>
Yes
<flokli>
I assume there's many more bugs after that...
<blackriversoftwa>
Haven't hit any so far
<blackriversoftwa>
have been using nix successfully
<blackriversoftwa>
just had to disable the channel-adding stuff in the installer script
<flokli>
I tried crosscompiling some armv7l nixos systems, and ran into annoying bugs
<blackriversoftwa>
and not use channels
<blackriversoftwa>
I'm sure there are more bugs with nixos
<blackriversoftwa>
Also on Ubuntu 18.04 for the pi, the kernel wasn't built with user namespaces
<blackriversoftwa>
so single-user installs only
<samueldr>
flokli: I thought armv7l cross in staging/unstable still needed the bootstrap to be fixed, doesn't it?
<flokli>
samueldr: puh, yeah, that one too probably
<blackriversoftwa>
samueldr: at my $DAYJOB we are cross-compiling Haskell to armv7l with nixpkgs-19.09 and haskell.nix
<flokli>
I got sidetracked by wayy to many other things last weeks
<blackriversoftwa>
flokli: thus my work on cross-compiling nix for these things, we want to be able to closure-copy to them instead of airdropping tarballs
<flokli>
bl
<blackriversoftwa>
flokli: what are you wanting with the indentation btw? I was kind of guessing because it's a bit of a complicated expression
<flokli>
blackriversoftwa: how sweet would be if you could just nix-copy-closure the whole nixos system over ;-)
<blackriversoftwa>
flokli: I agree, however that's not on the table at this time for very good reasons
<blackriversoftwa>
this is a good incremental step tho
<flokli>
yeah :-)
<flokli>
let's simply say I'd be interested in that too, for my router setups at home
<flokli>
let me know when you're tackling that - I might help out ;-)
<blackriversoftwa>
heh ok. I'm uconvinced that the nixos closure can be made small enough for routers
<blackriversoftwa>
unless you have really beefy routers at home
<blackriversoftwa>
I have thought about using the module system to generate e.g. Microtik config scripts tho
<samueldr>
ah, so something was bringing in font stuff in your config
<flokli>
yes
<samueldr>
I must assume you did not have armv7l issues, but cross-compilation issues, mainly
<samueldr>
(which is good! it means more universal fixes!)
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<flokli>
hah, yes
zupo has joined #nixos-aarch64
<blackriversoftwa>
samueldr: how does buildInputs vs nativeBuildInputs work? Nixpkgs manual explains how to use them (roughly) but not how they work
<samueldr>
1000' overview: at some point during the evaluation, "splicing" happens, it's a step where during callPackage nixpkgs gets the native variant of of packages for nativeBuildInputs
<samueldr>
I don't exactly know how it works
<samueldr>
but the keyword is "splicing"
<flokli>
pkgs/top-level/splice.nix
<samueldr>
it only works for callPackage invocations, so if you stdenv.mkDerivation in another context, it won't work, IIRC
<blackriversoftwa>
i c
<blackriversoftwa>
odd
<samueldr>
ugh!
<samueldr>
I forgot to unplug `system`(exec) from the command running thing from the boot gui simulator... so I rebooted my main machine rather than just print "reboot" in the console :|
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orivej has quit [Ping timeout: 240 seconds]
zupo has joined #nixos-aarch64
Thra11 has quit [Quit: WeeChat 2.7]
zupo has quit [Ping timeout: 255 seconds]
zupo has joined #nixos-aarch64
ryantrinkle has quit [Ping timeout: 258 seconds]
zupo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]