haskell / haskell/cabal

RFC: Make nix-store packages relocatable

Open
#4,097 4 comments 4 reactions 0 assignees View on GitHub
cabal-install: v2-build system type: discussion
Dominant language
Haskell
Stars
1.7k
Forks
750
Avg merge
4d 3h
Merged PRs (30d)
28

Description

*WIP: I've created this ticket so I don't forget to flesh it out with a few possible approaches*

The basic idea/problem: we could easily have compiled nix-store packages made relocatable (and they're nicely self-contained in "$prefix/store/$compiler/$libname"), if `Paths_$pkgname.hs` would allow us to have a single variable for overriding the "$prefix/store" base-folder (strawman: "$CABAL_STORE_PATH"), rather than hardwirding the `$prefix` into each compiled artifact (to keep this simple, I'm going to ignore DSO-related path-relocability-issues).

TODO: describe minimal/specific variant, as well as a more general variant involving general var-name template interpolation scheme.

/cc @ezyang @dcoutts

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.