!RbXGJhHMsnQcNIDFWN:nixos.org

Haskell in Nixpkgs/NixOS

713 Members
For discussions and questions about Haskell with Nix, cabal2nix and haskellPackages in nixpkgs | Current Docs: https://haskell4nix.readthedocs.io/143 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
7 Sep 2025
@bglgwyng:matrix.orgbglgwyng

I'm trying to let Nix fetch index-tarball and cabal use it.

repository hackage.haskell.org
  url: file://${./01-index.tar.gz}

But it didn't work. Has anyone tried something similar?

12:56:25
@bglgwyng:matrix.orgbglgwyngI read https://cabal.readthedocs.io/en/3.4/installing-packages.html this page, and I don't even sure that it's possible to configure a repository only with the index tarball only.12:56:50
@bglgwyng:matrix.orgbglgwyng

I just tried url: file://${repo} which contains 00-index.tar.gz and got

> cabal-install version 3.14.2.0
       > compiled using version 3.14.2.0 of the Cabal library
       > Warning: Caught exception during _mirrors lookup:res_query: does not exist
       > (Connection refused)
       > Warning: No mirrors found for
       > file:///nix/store/7kry9ps6yridc97gpp4kp8vcd99vlnyx-repo
       > /nix/store/7kry9ps6yridc97gpp4kp8vcd99vlnyx-repo/root.json: openBinaryFile: does not exist (No such file or directory)
13:42:39

Show newer messages


Back to Room ListRoom Version: 6