-
Notifications
You must be signed in to change notification settings - Fork 181
Closed
Description
What did you expect to happen?
Topgrade upgrade nixpkgs installed in Arch Linux.
What actually happened?
Non-free nixpkgs are not being upgraded and the output error is:
Additional Details
- Which operating system or Linux distribution are you using? Arch Linux
- How did you install Topgrade? Via cargo.
- Which version are you running? Topgrade 10.3.3
error: Package ‘geekbench-6.0.1’ in /nix/store/jlhl9fc6x7a54y23yxkx6822ymqzsp7a-source/pkgs/tools/misc/geekbench/6.nix:44 has an unfree license (‘unfree’), refusing to evaluate. a) To temporarily allow unfree packages, you can use an environment variable for a single invocation of the nix tools. $ export NIXPKGS_ALLOW_UNFREE=1 Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+ (Flake) command, `--impure` must be passed in order to read this environment variable. b) For `nixos-rebuild` you can set { nixpkgs.config.allowUnfree = true; } in configuration.nix to override this. Alternatively you can configure a predicate to allow specific packages: { nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "geekbench" ]; } c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add { allowUnfree = true; } to ~/.config/nixpkgs/config.nix.
I've tried the following to address the issue without luck:
- export NIXPKGS_ALLOW_UNFREE=1 && topgrade
- Create a ~/.config/nixpkgs/config.nix file with { allowUnfree = true; } as its content.
- In topgrade.toml config file, tested all the following nix_arguments one by one:
a) nix_arguments = "impure"
b) nix_arguments = "--allowUnfree"
c) nix_arguments = "--allow-unfree"
What can I do? Thanks for your support.
Metadata
Metadata
Assignees
Labels
No labels