Skip to content

Instantly share code, notes, and snippets.

@darwin
Created October 27, 2020 14:56
Show Gist options
  • Save darwin/bbabcd058823214bdbf89da42ebd9b96 to your computer and use it in GitHub Desktop.
Save darwin/bbabcd058823214bdbf89da42ebd9b96 to your computer and use it in GitHub Desktop.
❯ nix-shell --show-trace controller/shell.nix --run 'python controller/main.py'
error: while evaluating the attribute 'buildInputs' of the derivation 'trezor-user-env-controller' at /Users/darwin/farm/trezor-user-env/controller/shell.nix:24:5:
while evaluating the attribute 'passAsFile' of the derivation 'python3-3.8.5-env' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/build-support/trivial-builders.nix:7:7:
while evaluating 'requiredPythonModules' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/top-level/python-packages.nix:64:27, called from /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/development/interpreters/python/wrapper.nix:15:13:
while evaluating 'unique' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/lib/lists.nix:643:12, called from /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/top-level/python-packages.nix:66:6:
while evaluating 'unique' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/lib/lists.nix:643:12, called from /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/lib/lists.nix:649:17:
while evaluating anonymous function at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/lib/lists.nix:152:16, called from undefined position:
while evaluating the attribute '__impureHostDeps' of the derivation 'python3.8-trezor-0.12.2' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/development/interpreters/python/mk-python-derivation.nix:108:5:
while evaluating 'unique' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/lib/lists.nix:643:12, called from /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/stdenv/generic/make-derivation.nix:181:9:
while evaluating anonymous function at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/stdenv/generic/make-derivation.nix:181:36, called from /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/stdenv/generic/make-derivation.nix:181:21:
while evaluating 'chooseDevOutputs' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/lib/attrsets.nix:475:22, called from undefined position:
while evaluating anonymous function at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/lib/lists.nix:152:16, called from undefined position:
while evaluating the attribute 'handled' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/stdenv/generic/check-meta.nix:256:7:
while evaluating 'handleEvalIssue' at /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/stdenv/generic/check-meta.nix:152:38, called from /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/stdenv/generic/check-meta.nix:257:14:
Package ‘trezor-udev-rules-unstable-2019-07-17’ in /nix/store/a4svi29pmh2qips8h6649vvzhk5nk5qd-source/pkgs/os-specific/linux/trezor-udev-rules/default.nix:27 is not supported on ‘x86_64-darwin’, refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment