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

Problem: Hydra and Travis are not building the same derivations for darwin #147

Closed
clacke opened this issue Jul 14, 2018 · 5 comments
Closed

Comments

@clacke
Copy link
Member

clacke commented Jul 14, 2018

Example: Hydra builds /nix/store/zblnmsg3riv6hqj1vsa31av4qabws75b-racket-minimal-6.12, but Travis builds /nix/store/g89lhyjc4qg048chdl5i98sl3a5zyv7z-racket-minimal-6.12, as seen in #146 .

@clacke
Copy link
Member Author

clacke commented Jul 14, 2018

Hydra linux:

$ nix-instantiate https://github.com/fractalide/racket2nix/archive/master.tar.gz --arg pkgs 'import (builtins.fetchurl { url = https://github.com/fractalide/racket2nix/raw/master/nixpkgs.nix; }) { system = "x86_64-darwin"; }'
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
/nix/store/qcq6abs73xzgqgic869q5ph6mlm308jk-nix.drv

Hydra darwin: same

So apparently just setting system should be good enough.

But Travis wants to build /nix/store/800z3kj6nwq8ana2v3v7q6r12y5j98m1-racket-minimal-6.12.drv. We need to find out what's different about that one.

@clacke
Copy link
Member Author

clacke commented Jul 15, 2018

I had a sudden realization that this is probably going to involve us having to deal with properly categorizing buildInputs and nativeBuildInputs, or at least build system vs target system.

@clacke
Copy link
Member Author

clacke commented Jul 15, 2018

But now I get 800z3kj6nwq8ana2v3v7q6r12y5j98m1-racket-minimal-6.12.drv and g89lhyjc4qg048chdl5i98sl3a5zyv7z-racket-minimal-6.12 on both darwin and linux, so I guess it might actually be as simple as a case of support/utils/setup-hydra.fractalide.com.sh not working on darwin. We probably need to kick nix-daemon to re-read the nix.conf.

@clacke
Copy link
Member Author

clacke commented Jul 15, 2018

Yes, that was it. Closed by #148 .

@clacke clacke closed this as completed Jul 15, 2018
@clacke
Copy link
Member Author

clacke commented Jul 16, 2018

I had a sudden realization that this is probably going to involve us having to deal with properly categorizing buildInputs and nativeBuildInputs, or at least build system vs target system.

It didn't. But just want to say that this was already brought up in #138 .

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

1 participant