!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

354 Members
111 Servers

Load older messages


SenderMessageTime
30 Jun 2022
@fufexan:matrix.orgfufexancompiling perl lol10:21:49
@matthewcroughan:defenestrate.itmatthewcroughan - nix.hownative compilation produces paths like /nix/store/foo whereas cross compiling is like /nix/store/riscv64-foo10:22:26
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how so if you do nix-shell on the board, it's not going to have /nix/store/foo since you didn't compile natively 10:22:45
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howso no paths match10:22:48
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howyou have to deploy to the board 10:22:51
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how go to my flake, make a change to the configuration.nix, then nixos-rebuild switch --flake .#visionfive-cross-x86 --target-host user@board 10:23:14
@fufexan:matrix.orgfufexancan a binfmt'd host build native paths? or is it just cross compiling?10:23:30
@dramforever:matrix.orgdramforever I guess you can nix shell github:{forked-nixpkgs}#legacyPackages.x86_64-linux.pkgsCross.riscv64.lm_sensors with a builder 10:30:12
@matthewcroughan:defenestrate.itmatthewcroughan - nix.howthat's true 10:34:04
@matthewcroughan:defenestrate.itmatthewcroughan - nix.how
In reply to @fufexan:matrix.org
can a binfmt'd host build native paths? or is it just cross compiling?
binfmt is native yes
10:34:24
@dramforever:matrix.orgdramforever well honestly I just steal packages from NickCao
nix run --extra-substituters "https://cache.nichi.co" --extra-trusted-public-keys "hydra.nichi.co-0:P3nkYHhmcLR3eNJgOAnHDjmQLkfqheGyhZ6GLrUVHwk=" github:NickCao/nixpkgs/riscv#legacyPackages.x86_64-linux.pkgsCross.riscv64.lm_sensors
10:37:23
@dramforever:matrix.orgdramforeverreally saved me a lot of time when i was trying to get some weird images going10:38:01
@fufexan:matrix.orgfufexangreat, cooking up a configuration.nix based on what you suggested10:38:42
@fufexan:matrix.orgfufexan can I somehow make github:NickCao/nixpkgs/riscv#legacyPackages.x86_64-linux.pkgsCross.riscv64 an installable? so that I can just run nix shell np-riscv#<package> and it would expand that automatically? 10:47:14
@fufexan:matrix.orgfufexanor I guess I could make a global alias in bash/zsh10:47:23
@dramforever:matrix.orgdramforevermight be a good idea10:55:07
@dramforever:matrix.orgdramforeveri mean, adding it to flake.nix10:55:14
@fufexan:matrix.orgfufexan
› nixos-rebuild switch --flake .#visionfive-cross-x86 --target-host nixos@10.0.0.104
warning: Git tree '/home/mihai/Documents/code/git/visionfive-nix' is dirty
/nix/store/rcy3nb3vx7z3dm3lqpwkygph38f3c0rp-nixos-rebuild/bin/nixos-rebuild: line 374: /nix/store/mskilnkr76pjiwhr0wbl1p41pld7bkrc-coreutils-riscv64-unknown-linux-gnu-9.0/bin/mktemp: cannot execute binary file: Exec format error
11:12:12
@fufexan:matrix.orgfufexanthis is weird11:12:17
@fufexan:matrix.orgfufexanhttps://github.com/fufexan/visionfive-nix this is all I've changed11:15:55
@nospaces:fairydust.spacenospaces joined the room.21:29:59
1 Jul 2022
@marius851000:mariusdavid.frBurrito (marius) changed their profile picture.08:27:40
@fufexan:matrix.orgfufexan
In reply to @fufexan:matrix.org
or I guess I could make a global alias in bash/zsh
so that alias did not work, will have to think of a different way to make it work
10:08:11
@fufexan:matrix.orgfufexan
In reply to @fufexan:matrix.org
› nixos-rebuild switch --flake .#visionfive-cross-x86 --target-host nixos@10.0.0.104
warning: Git tree '/home/mihai/Documents/code/git/visionfive-nix' is dirty
/nix/store/rcy3nb3vx7z3dm3lqpwkygph38f3c0rp-nixos-rebuild/bin/nixos-rebuild: line 374: /nix/store/mskilnkr76pjiwhr0wbl1p41pld7bkrc-coreutils-riscv64-unknown-linux-gnu-9.0/bin/mktemp: cannot execute binary file: Exec format error
also fixed this by enabling riscv64 binfmt on my machine
10:08:32
5 Jul 2022
@luizribeiro:matrix.orgluizribeiro

in case any of you are interested, I’ve been collecting all my riscv64 patches on this repo: https://github.com/luizribeiro/nixpkgs-riscv

there’s a bunch of stuff I’ve had to do to get my usual setup to run on the visionfive. stuff like getting llvm to build, building a go bootstrap compiler for riscv64 (they don’t provide one), etc.

I’m putting up PRs but it will take a while for all of it to get upstreamed

02:15:13
@luizribeiro:matrix.orgluizribeiro(it’s obviously based on the awesome work by others who have put up PRs to get the visionfive to boot, of course :) all I’m doing is getting the packages I couldn’t build fixed)02:15:53
6 Jul 2022
@dudeofawesome:matrix.orgdudeofawesome joined the room.06:22:49
8 Jul 2022
@linear:kity.wtflinear joined the room.00:33:25
@marius851000:mariusdavid.frBurrito (marius) changed their display name from marius851000 to Burrito (Marius).15:21:18
@marius851000:mariusdavid.frBurrito (marius) changed their display name from Burrito (Marius) to Burrito (marius).15:24:03

Show newer messages


Back to Room ListRoom Version: 6