Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Freetube Not Available on aarch64-apple-darwin #12644

Closed
phucleeuwu opened this issue Mar 13, 2025 · 1 comment
Closed

Bug Report: Freetube Not Available on aarch64-apple-darwin #12644

phucleeuwu opened this issue Mar 13, 2025 · 1 comment
Labels

Comments

@phucleeuwu
Copy link

Description

When attempting to install freetube-0.23.2 on aarch64-apple-darwin, Nix refuses to evaluate the package due to platform incompatibility.

Error Message

error: Package ‘freetube-0.23.2’ in /nix/store/5bshdizjcs9agk532fy4373kl7gbn9cr-source/pkgs/by-name/fr/freetube/package.nix:104 is not available on the requested hostPlatform:
  hostPlatform.config = "aarch64-apple-darwin"
  package.meta.platforms = [
    "x86_64-darwin"
    "x86_64-linux"
    "armv7l-linux"
    "aarch64-linux"
    "aarch64-darwin"
  ]
  package.meta.badPlatforms = [
    {
      kernel = {
        families = {
          darwin = {
            _type = "exec-format";
            name = "darwin";
          };
        };
      };
    }
  ]
, refusing to evaluate.

Steps to Reproduce

  1. Run the following command on aarch64-apple-darwin:
    nix build nixpkgs#freetube
  2. Observe the error message stating that the package is not available.

Workarounds

Temporary Override

You can use an environment variable to temporarily allow unsupported packages:

export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1
nix build nixpkgs#freetube --impure

Persistent Override

  • For nixos-rebuild, add the following to your configuration.nix:
    { nixpkgs.config.allowUnsupportedSystem = true; }
  • For nix-env, nix-build, nix-shell, or any other Nix command, add this to ~/.config/nixpkgs/config.nix:
    { allowUnsupportedSystem = true; }

Expected Behavior

Freetube should build and run on aarch64-apple-darwin or provide a clear reason why it is explicitly marked as unsupported.

Additional Information

  • System Info: aarch64-apple-darwin
  • Nixpkgs Commit: (please specify if possible)
  • Relevant Logs: (if applicable)

Suggested Fix

Review the package's meta.platforms and meta.badPlatforms settings to determine if aarch64-apple-darwin should be supported or if additional dependencies are required for compatibility.

References

@phucleeuwu phucleeuwu added the bug label Mar 13, 2025
@TomaSajt
Copy link

The Nix repo is not the place to report nixpkgs related issues.
Please report those over at https://github.com/NixOS/nixpkgs

@Mic92 Mic92 closed this as completed Mar 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants