Open
Description
Current Behavior
'nix run' results in an error.
Expected Behavior
No error.
Steps To Reproduce
nix flake init --template github:tweag/jupyenv
nix run
OS
- system: `"x86_64-linux"`
- host os: `Linux 6.12.21, NixOS, 25.05 (Warbler), 25.05.20250402.2c8d3f4`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.24.13`
- nixpkgs: `/nix/store/fwhfa9pbx8vdi8nd5pcys665baz6xdxf-source`
Version
https://github.com/tweag/jupyenv
Additional Context
Could be related to #570.
Issue resolved the same way: set the flake.nix input to the nixos-24.11 branch of nixpkgs.
Thanks for posting @cryptism - very helpful.
I found setting line 14 on
flake.nix
to:inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-24.11";
fixed this. I'm not sure why it's dependent on the unstable version of nixpkgs by default, because obviously it's prey to situations exactly like this.
Originally posted by @cryptism in #570
Relevant log output
warning: ignoring untrusted substituter 'https://tweag-jupyter.cachix.org', you are not a trusted user.
Run `man nix.conf` for more information on the `substituters` configuration option.
warning: ignoring the client-specified setting 'trusted-public-keys', because it is a restricted setting and you are not a trusted user
error:
… while calling the 'getAttr' builtin
at <nix/derivation-internal.nix>:50:17:
49| value = commonAttrs // {
50| outPath = builtins.getAttr outputName strict;
| ^
51| drvPath = strict.drvPath;
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:37:12:
36|
37| strict = derivationStrict drvAttrs;
| ^
38|
… while calculating requiredPythonModules for python3.12-jupyterlab-4.3.1:
… while calculating requiredPythonModules for python3.12-jupyter-lsp-2.2.5:
… while calculating requiredPythonModules for python3.12-jupyter-server-2.14.2:
… while calculating requiredPythonModules for python3.12-jupyter-events-0.10.0:
… while calculating requiredPythonModules for python3.12-jsonschema-4.23.0:
… while calculating requiredPythonModules for python3.12-jsonschema-specifications-2024.10.1:
… while calculating requiredPythonModules for python3.12-referencing-0.35.1:
(stack trace truncated; use '--show-trace' to show the full, detailed trace)
error: `rustPlatform.fetchCargoTarball` has been removed in 25.05, use `rustPlatform.fetchCargoVendor` instead