nixbot

builds

failed eval aarch64-linux.package-jailed-claude-code build #15 · raw ·

1error:2       … while evaluating the attribute 'optionalValue.value'3         at «github:nixos/nixpkgs/241313f4e8e508cb9b13278c2b0fa25b9ca27163?narHash=sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU%3D»/lib/modules.nix:1312:5:4         1311|5         1312|     optionalValue = if isDefined then { value = mergedValue; } else { };6             |     ^7         1313|   };89       … while evaluating a branch condition10         at «github:nixos/nixpkgs/241313f4e8e508cb9b13278c2b0fa25b9ca27163?narHash=sha256-vlHUuqAcbcH2RKmHbPiuQzbv1pnzzavXnI62RD0bqCU%3D»/lib/modules.nix:1312:21:11         1311|12         1312|     optionalValue = if isDefined then { value = mergedValue; } else { };13             |                     ^14         1313|   };1516       … while evaluating definitions from `/nix/store/xfg4bws749i95jvnxhymxmfwailzk38q-source/modules/transposition.nix':1718       … while evaluating definitions from `/nix/store/1y8v5yh4wlb7h59xpvwj3jjiqbbz689a-source/flake.nix, via option perSystem':1920       … while evaluating definitions from `/nix/store/xfg4bws749i95jvnxhymxmfwailzk38q-source/modules/transposition.nix':2122       … while evaluating definitions from `/nix/store/1y8v5yh4wlb7h59xpvwj3jjiqbbz689a-source/packages/jailed-agents.nix, via option perSystem':2324       (stack trace truncated; use '--show-trace' to show the full, detailed trace)2526       error: Refusing to evaluate package 'claude-code-2.1.214' in /nix/store/7j1q60m17gf95k3s0gk2qvjqygnp1q36-source/pkgs/by-name/cl/claude-code/package.nix:92 because it has an unfree license (‘unfree’)27       a) To temporarily allow unfree packages, you can use an environment variable28          for a single invocation of the nix tools.2930            $ export NIXPKGS_ALLOW_UNFREE=13132          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,33                then pass `--impure` in order to allow use of environment variables.3435       b) For `nixos-rebuild` you can set36         { nixpkgs.config.allowUnfree = true; }37       in configuration.nix to override this.3839       Alternatively you can configure a predicate to allow specific packages:40         { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [41             "claude-code"42           ];43         }4445       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add46         { allowUnfree = true; }47       to ~/.config/nixpkgs/config.nix.