I am using NixOS (23.11 unstable). Here is the error:
Error: [S-775]
Exception while reading snapshot from https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/19/33.yaml:
HttpExceptionRequest Request {
host = "raw.githubusercontent.com"
port = 443
secure = True
requestHeaders = [("User-Agent","Haskell pantry package")]
path = "/commercialhaskell/stackage-snapshots/master/lts/19/33.yaml"
queryString = ""
method = "GET"
proxy = Nothing
rawBody = False
redirectCount = 10
responseTimeout = ResponseTimeoutDefault
requestVersion = HTTP/1.1
proxySecureMode = ProxySecureWithConnect
}
ConnectionTimeout
in response to stack build
launched from a shell configured like so:
{ pkgs ? import <nixpkgs> { } }:
let
hls = pkgs.haskell-language-server.override {
supportedGhcVersions = [ "902" ];
};
stack-wrapped = pkgs.symlinkJoin {
name = "stack";
paths = [ pkgs.stack ];
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/stack \
--add-flags "\
--nix \
--no-nix-pure \
--nix-shell-file=nix/stack-integration.nix \
"
'';
};
in
pkgs.mkShell {
# Do NOT use `stack`, otherwise system dependencies like `zlib` are missing at compilation
buildInputs = [
stack-wrapped
hls
pkgs.haskell.compiler.ghc90
];
NIX_PATH = "nixpkgs=" + pkgs.path;
}
The wider context of what I am trying to build can be seen here: GitHub - why-not-try-calmer/mongodb at beefed-up-tests-atlas. Pulling my hair on this, any hint highly appreciated.