I’m new to Nix, and also trying to get it to work on my Raptor Talos II.
I was able to compile Nix on an x86_64 machine, following these instructions (adding “powerpc64le-linux” to flake.nix). And I was able to install it on Debian ppc64le. No problems there.
But actually trying to use Nix, I get errors like this:
- The installer said to test with this command
nix-shell -p nix-info --run "nix-info -m"
.
- I get:
error:
… <borked>
at «none»:0: (source not available)
… while calling the 'import' builtin
at «string»:1:18:
1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (nix-info) ]; } ""
| ^
(stack trace truncated; use '--show-trace' to show the full trace)
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)
I did relaunch the terminal, so the changes should have taken effect, as per the instructions.
- I found a Github issue where someone mentioned using this:
env NIX_PATH=$HOME/.nix-defexpr/channels
, so I tried env NIX_PATH=$HOME/.nix-defexpr/channels nix-shell -p 'bash'
.
- And I get:
warning: Nix search path entry '/home/rjzak/.nix-defexpr/channels' does not exist, ignoring
error:
… <borked>
at «none»:0: (source not available)
… while calling the 'import' builtin
at «string»:1:18:
1| {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (bash) ]; } ""
| ^
(stack trace truncated; use '--show-trace' to show the full trace)
error: file 'nixpkgs' was not found in the Nix search path (add it using $NIX_PATH or -I)
at «none»:0: (source not available)
$ uname -a
Linux behemoth 6.1.0-3-powerpc64le #1 SMP Debian 6.1.8-1 (2023-01-29) ppc64le GNU/Linux
$ nix --version
nix (Nix) 2.15.0pre20230303_dirty
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye