Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/hydra
base: 8b5948f4cf12
Choose a base ref
...
head repository: NixOS/hydra
compare: be2791330e9d
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Mar 15, 2019

  1. Fix Linux build on Darwin

    Without this patch running the following on MacOS:
    
      nix-build release.nix -A build.x86_64-linux
    
    results in the following error during the configuration phase (note that Nix
    should be configured with a x86_64-linux build machine):
    
      building '/nix/store/jb6ca1gmplyb69ayd43z7fb0y9npxd53-hydra-0.1.2581.8b5948f4cf12424c04df67a6eb136c9846fb2cfd.drv' on 'ssh://my-linux-build-machine'...
      ...
      checking whether /nix/store/s6bhdppx66bkgf741vk4d29hgsj1h1zp-hydra-perl-deps/bin/nix-store is recent enough... ./configure: line 16254: /nix/store/s6bhdppx66bkgf741vk4d29hgsj1h1zp-hydra-perl-deps/bin/nix-store: cannot execute binary file: Exec format error
      no
      configure: error: `/nix/store/s6bhdppx66bkgf741vk4d29hgsj1h1zp-hydra-perl-deps/bin/nix-store' doesn't support `--timeout'; please use a newer version.
      build time elapsed:  0m1.624s 0m1.774s 0m9.366s 0m6.110s
      builder for '/nix/store/jb6ca1gmplyb69ayd43z7fb0y9npxd53-hydra-0.1.2581.8b5948f4cf12424c04df67a6eb136c9846fb2cfd.drv' failed with exit code 1
    
    This problem is that the `nix` dependency of hydra is selected from a nixpkgs
    set configured with a default `system` parameter,
    i.e. `builtin.currentSystem`. This means that the hydra derivation which is
    build for and on Linux depends on the nix derivation build for Darwin.
    
    The fix is to select nix from the nixpkgs set configured with a system specified
    by the user.
    basvandijk committed Mar 15, 2019
    Copy the full SHA
    e9d032b View commit details
    Browse the repository at this point in the history
  2. Merge pull request #641 from basvandijk/fix-linux-build-on-darwin

    Fix Linux build on Darwin
    edolstra committed Mar 15, 2019
    Copy the full SHA
    be27913 View commit details
    Browse the repository at this point in the history