Skip to content

Building enola on Mac Intel fails #1915

@edewit

Description

@edewit

Running nix develop on an intel mac gives me the following error:

nix develop
error:
       … while calling the 'derivationStrict' builtin
         at «nix-internal»/derivation-internal.nix:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating derivation 'nix-shell'
         whose name attribute is located at «github:NixOS/nixpkgs/e643668fd71b949c53f8626614b21ff71a07379d?narHash=sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o%3D»/pkgs/stdenv/generic/make-derivation.nix:539:13

       … while evaluating attribute '__impureHostDeps' of derivation 'nix-shell'
         at «github:NixOS/nixpkgs/e643668fd71b949c53f8626614b21ff71a07379d?narHash=sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o%3D»/pkgs/stdenv/generic/make-derivation.nix:689:15:
          688|               );
          689|               __impureHostDeps =
             |               ^
          690|                 computedImpureHostDeps

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'x86_64-darwin' missing
       at /Users/edewit/workspace/enola/flake.nix:60:11:
           59|           deadnix.packages.${system}.default
           60|           bazel.packages.${system}.default
             |           ^
           61|         ];

The issue might be with flake.nix
The error indicates that bazel.packages.${system}.default is missing the x86_64-darwin attribute. The bazel flake input (from github:vorburger/bazel-nix) doesn't provide packages for the x86_64-darwin system (macOS on Intel).

Metadata

Metadata

Assignees

Labels

applebugSomething isn't workingbuildBuild, CI, etc. (w.o. #testing)contributorsAffects Contributors (not users)dependenciesPull requests that update a dependency filemac-onlymacOS (AKA Mac OS X) specificupstreamAn issue that is blocked by/on an "upstream" dependency.⏳awaiting reporterCommitters are waiting for reaction from reporter

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions