nixvim icon indicating copy to clipboard operation
nixvim copied to clipboard

[BUG] Can't deploy from aarch64-darwin to x86_64-linux

Open notthebee opened this issue 1 year ago • 10 comments

Field Description
Plugin N/A
Nixpkgs 24.05
Home Manager 24.05

  • [x] I have read the FAQ and my bug is not listed there.

Description

Trying to deploy a flake which includex nix-community/nixvim from an M1 Mac to an x86-64 NixOS machine using deploy-rs produces the following error:

error: a 'x86_64-linux' with features {} is required to build '/nix/store/dknd53ikkkjvk5jgw0hcwmby9ddpj9v1-init.lua.drv', but I am a 'aarch64-darwin' with features {apple-virt, benchmark, big-parallel, nixos-test}

#1637 seemed to fix a similar error in the file nixpkgs-nixvim-doc.drv, but the issue with init.lua.drv remains.

It seems to be related to the IFDs mentioned in this issue: #1154

Minimal, Reproducible Example (MRE)

  1. Include the nix-community/nixvim flake in flake.nix inputs
  2. Run nix flake update
  3. Attempt to deploy your flake from an aarch64 Mac to a x86-64 NixOS machine using deploy-rs, for instance:
deploy -s --remote-build ".?submodules=1#spencer" 

notthebee avatar Jun 07 '24 08:06 notthebee