-
Notifications
You must be signed in to change notification settings - Fork 701
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
RFC: Make nix-store packages relocatable #4097
Comments
Just want to point out there is some support for relocatable packages in Cabal already: #2255 http://qbaylogic.com/blog/2016/05/08/relocatable-sandboxes.html describes how the above PR gives relocatable sandboxes. |
Questions:
What if user have non-default Should the default cabal-store-path still be saved in
to produce artifacts with my local machine paths burned in (I do have Even more bonus: |
#5551 is a prerequisite |
I think
I don't know however how to not break
|
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
The text was updated successfully, but these errors were encountered: