Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support file+noindex repositories #2296

Open
TeofilC opened this issue Dec 17, 2024 · 1 comment
Open

Support file+noindex repositories #2296

TeofilC opened this issue Dec 17, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@TeofilC
Copy link
Contributor

TeofilC commented Dec 17, 2024

Cabal's file+noindex repos are an alternative to source-repo-packages. I'm currently trying to figure out if these would be faster than using source-repo-packages with haskell.nix.

But it seems like haskell.nix's plan creation logic can't handle file+noindex repositories. We get errors like the following:

Warning: unable to update the repo index cache --
/nix/store/qqafdyqp0vx6rwd3qi388h1zwqixww5d-dot-cabal/packages/ch-overrides-7dac215512b0f397:
createDirectory: permission denied (Permission denied)
Warning: Error during construction of local+noindex ch-overrides repository
index:
/nix/store/qqafdyqp0vx6rwd3qi388h1zwqixww5d-dot-cabal/packages/ch-overrides-7dac215512b0f397/noindex.cache:
openBinaryFile: does not exist (No such file or directory)
Resolving dependencies...

It seems like we need to give it a space to write the cache

@TeofilC TeofilC added the enhancement New feature or request label Dec 17, 2024
@TeofilC
Copy link
Contributor Author

TeofilC commented Dec 17, 2024

This is the probelmatic bit

parseRepositoryBlock = evalPackages: _cabalProjectFileName: sha256map: inputMap: nix-tools: block:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant