-
Notifications
You must be signed in to change notification settings - Fork 696
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
[nix-local-build] new-install interface for installing executables #3332
Comments
Eventually sure. And we don't want to tie our hands up implementing it later. However I think this cabal new-install feature alone without ability to roll back is very valuable on its own and will give many the option of using cabal new-build rather than stack in their workflows. |
Is there a blocking issue for this feature or just no one has tried to implement it yet? |
IIUC, the latter. |
Thanks. I think this is a very useful feature even without the rollback feature or the GC mechanism mentioned in the description. I'll see later if I can quickly implement it. |
This script by @hvr can be used as a starting point for the implementation: https://gist.github.com/hvr/c77c54d682555b7dd4fe1248732fe978
|
Closing in favour of #4558. |
Suppose you want to install pandoc. How would you do so using the Nix-local build interface?
new-install
is not supported, so you can't. Installing executables is, indeed, a really good reason why we neednew-install
: to manage a "Nix profile", which is the actual set of packages available to a user's PATH. I suppose we also want the ability to rollback (like in Nix) in case someone installs something they don't like. These would also be considered roots for any sort of hypothetical GC mechanism.Here's an even easier way to do it: to new-install an executable, first install it into the store, and then create a symlink from
.cabal/bin
to this executable.(@hvr says: see also #4558)
The text was updated successfully, but these errors were encountered: