Following the instruction on: https://github.com/hercules-ci/elm2nix
gives me this error:
error: anonymous function at /nix/store/<sha>/nixpkgs/pkgs/development/compilers/elm/fetchElmDeps.nix:3:1 called without required argument 'registryDat', at /tmp/elm-todomvc/default.nix:23:20
I looked at the fetchElmDeps.nix file: https://github.com/NixOS/nixpkgs/blob/d5053d12eb23377bcc860f8cb3bfa65c4507772d/pkgs/development/compilers/elm/fetchElmDeps.nix#L3
and it seems to now take 3 arguments but the default.nix file generated by elm2nix init
only gives it 2.
I modified the default.nix file to have:
buildPhase = pkgs.elmPackages.fetchElmDeps {
elmPackages = import srcs;
registryDat = versionsDat;
elmVersion = "0.19.0";
};
and that leads to the error:
-- PROBLEM LOADING PACKAGE LIST ------------------------------------------------
I need the list of published packages to verify your dependencies, so I tried to
fetch:
https://package.elm-lang.org/all-packages
But my HTTP library is giving me the following error message:
ConnectionFailure Network.Socket.getAddrInfo (called with preferred socket type/protocol: AddrInfo {addrFlags = [AI_ADDRCONFIG], addrFamily = AF_UNSPEC, addrSocketType = Stream, addrProtocol = 0, addrAddress = <assumed to be undefined>, addrCanonName = <assumed to be undefined>}, host name: Just "package.elm-lang.org", service name: Just "443"): does not exist (Name or service not known)
which looks like it is from elm.
Is there a workaround for the problem?