Closed funketh closed 1 year ago
A more minimal example with the same error on aarch64:
{
inputs.haskellNix.url = "github:input-output-hk/haskell.nix";
inputs.nixpkgs.follows = "haskellNix/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils, haskellNix }:
flake-utils.lib.eachSystem [ "x86_64-linux" "aarch64-linux" ] (system:
let
overlays = [ haskellNix.overlay (final: prev: {
myalex = final.haskell-nix.tool "ghc901" "alex" "3.2.6";
})];
pkgs = import nixpkgs { inherit system overlays; };
in { defaultPackage = pkgs.myalex; }
);
}
I get the same error using ghc8104 so this seems unrelated to ghc 9?
Give this patch a spin: https://github.com/input-output-hk/haskell.nix/pull/1168
I'm getting a network error. Am I doing something wrong? I just changed the haskellNix input url to your branch.
error checking the existence of http://tarballs.nixos.org/sha256/1x2pfj9mnxac9rfki96bwwlmgi8ns0s7mhp99jmxkdm8726npdml:
curl: (6) Could not resolve host: tarballs.nixos.org
trying https://haskell.org/ghc/dist/8.8.2/ghc-8.8.2-aarch64-deb9-linux.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: haskell.org
Warning: Problem : timeout. Will retry in 1 seconds. 3 retries left.
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: haskell.org
Warning: Problem : timeout. Will retry in 2 seconds. 2 retries left.
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: haskell.org
Warning: Problem : timeout. Will retry in 4 seconds. 1 retries left.
^M 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (6) Could not resolve host: haskell.org
error: cannot download ghc-8.8.2-aarch64-deb9-linux.tar.xz from any mirror
curl: (6) Could not resolve host: haskell.org
Looks like it might be flakiness from wherever you're getting DNS?
This is a separate issue from the one addressed in #1168 anyway, and was actually caused by #1166 (https://github.com/input-output-hk/haskell.nix/issues/1207)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm using flakes and am building on x86_64. The build for x86_64 works fine but when I try to build for aarch64 (which would use qemu afaik) I get an error.
Full stack trace (the new nix traces are quite verbose...):