Skip to content

nix's build is non deterministic on aarch64-darwin #10352

Open
@Qyriad

Description

@Qyriad

Describe the bug

The derivation for Nix itself does not produce the same output every time on aarch64-darwin

Steps To Reproduce

  1. clone https://github.com/NixOS/nix on an aarch64-darwin machine (reproduced most recently on ef26133)
  2. run nix build
  3. run nix build --rebuild
  4. observe the message error: derivation '/nix/store/bihwslylwknilfw0pvwdry5nfp5snjhh-nix-2.22.0pre20240328_ef26133.drv' may not be deterministic: output '/nix/store/wsy8xc2c2s2q1na18h6n1jc0q9qjv5sp-nix-2.22.0pre20240328_ef26133' differs

Expected behavior

Nix's build should have deterministic outputs

nix-env --version output:

nix-env (Nix) 2.19.2

(The Nix version I'm using to build Nix master)

Additional context

I reproduced this with sandboxing on, and on two different M1 MacBooks.

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuild-problemNix fails to compile or test; also improvements to build process

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions