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

Installation of linux-builder fails with build error #1081

Open
max-pfeiffer opened this issue Sep 17, 2024 · 5 comments
Open

Installation of linux-builder fails with build error #1081

max-pfeiffer opened this issue Sep 17, 2024 · 5 comments

Comments

@max-pfeiffer
Copy link

I was trying to install linux-builder on a vanilla nix-darwin installation. I ran darwin-rebuild with config:

nix.linux-builder = {
        enable = true;
  };

Which resulted in this error:
error: a 'x86_64-linux' with features {} is required to build '/nix/store/apfag2zyidha87zcvk4z1kjba7zaww5b-append-initrd-secrets.drv', but I am a 'x86_64-darwin' with features {apple-virt, benchmark, big-parallel, nixos-test}

Is this a bug? Or am I doing something wrong here?

@winterqt
Copy link

What Nixpkgs revision are you using?

@max-pfeiffer
Copy link
Author

max-pfeiffer commented Sep 18, 2024

Checking the channels:
$:~/ > nix-channel --list
darwin https://github.com/LnL7/nix-darwin/archive/master.tar.gz

$:~/ > sudo -i nix-channel --list
nixpkgs https://nixos.org/channels/nixpkgs-unstable

@jamesla
Copy link

jamesla commented Sep 28, 2024

I have also started getting this (same nixpkg revisions). Did you manage to solve it?

@winterqt
Copy link

winterqt commented Sep 28, 2024

@max-pfeiffer @jamesla Assuming you both use channels, please run nix-instantiate --eval '<nixpkgs>' -A lib.trivial.version.

If not, please give me the Nixpkgs revision you're using.

@sandydoo
Copy link
Contributor

sandydoo commented Oct 5, 2024

Try enabling always-allow-substitutes = true in your nix.conf. This will allow Nix to substitute these derivations from the cache, instead of being forced to to build them by derivation overrides, like preferLocalBuild or allowSubstitutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants