-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
Closed
Labels
6.topic: darwinRunning or building packages on DarwinRunning or building packages on Darwin6.topic: reproducible buildsRun nix-build twice and get the same result.Run nix-build twice and get the same result.
Description
Issue description
Currently, Darwin stdenv doesn't have reproducible builds. According to this post it looks like Clang should support reproducible builds. It looks like macOS has some special PIE/ASLR that may be contributing to this.
Does anyone have insight on what's going on? Perhaps passing --no_pie to LLVM configure will fix something?
Steps to reproduce
$ nix-build -A hello --check
...
error: derivation ‘/nix/store/cq72li3c6vs7vabnlikfrz5vmjd4syj1-hello-2.10.drv’ may not be deterministic: output ‘/nix/store/la0bdn94l74vscz7bivhvi6qg7ih3v0p-hello-2.10’ differsTechnical details
- System: (NixOS:
nixos-version, Ubuntu/Fedora:lsb_release -a, ...)
macOS Sierra 10.12.2 - Nix version: (run
nix-env --version)
nix-env (Nix) 1.11.4 - Nixpkgs version: (run
nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
17.03pre-git
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
6.topic: darwinRunning or building packages on DarwinRunning or building packages on Darwin6.topic: reproducible buildsRun nix-build twice and get the same result.Run nix-build twice and get the same result.