Closed sweenu closed 1 year ago
The warning was another easy fix, and I'm looking into the missing stdenv
error now.
I can load the overlay without much trouble as follows:
# test.nix
let
flake = builtins.getFlake ("git+file://" + toString ./.); # the arion flake
in
{
pkgsRaw = import flake.inputs.nixpkgs { };
pkgs = import flake.inputs.nixpkgs { overlays = [ flake.overlays.default ]; };
}
$ nix repl test.nix
warning: future versions of Nix will require using `--file` to load a file
Welcome to Nix 2.11.1. Type :? for help.
Loading installable ''...
Added 2 variables.
nix-repl> pkgsRaw.arion
«derivation /nix/store/kr76qzng600r22wwwc7b0d0dhwqqf8pn-arion-0.1.3.0.drv»
nix-repl> pkgs.arion
«derivation /nix/store/0m7ndbw5kk5cg4n0148y3am3w275719d-arion-0.2.0.0.drv»
nix-repl>
So I wonder how it's loaded and what's in prev
.
If you can't share your code, perhaps the attributes of prev
might give a clue as to what went wrong.
If you nix doesn't have a debugger yet, here's how to a load the latest nix repl
with the Nix debugger enabled:
nix run --extra-experimental-features 'nix-command flakes' nix repl -- --debugger
Oh you did share your flake, nvm :) I'll have a look
Looks like digga is trying to do something clever
I'll support pkgs.system
as a fallback just to get you going again.
You're awesome, thanks for looking into it and the quick fixes!
Everything works, I just have a new warning: trace: using non-memoized system fake-system
, would you know if it's related?
new warning:
trace: using non-memoized system fake-system
,
It's performance related, but not useful around overlays, which are always a bit expensive anyway. Nothing to optimize here. I'll change it so that the warning doesn't occur here.
Thanks for the previous fix! I have another error and a warning: Here's my flake.nix: https://github.com/sweenu/nixfiles/blob/main/flake.nix