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

hackage-packages: keep versioned aliases for default packages #14643

Closed
bendlas opened this issue Apr 13, 2016 · 3 comments
Closed

hackage-packages: keep versioned aliases for default packages #14643

bendlas opened this issue Apr 13, 2016 · 3 comments
Labels
0.kind: question Requests for a specific question to be answered 6.topic: haskell

Comments

@bendlas
Copy link
Contributor

bendlas commented Apr 13, 2016

Issue description

Apparently, the "default" version of a hackage package doesn't have an alias with its proper version. This can cause problems when using newer versions, that become default.

Steps to reproduce

The example is a current breakage with emacs2nix

0c0aa04 makes aeson 0.11.1.4 the default, but gets rid of aeson_0_11_1_4 in the process. https://github.com/ttuegel/emacs2nix/blob/201f59f0d12d6e2ba1122b9247d0d110cfdb3680/shell.nix#L14 however, already depends on that name.

Technical details

  • System: 16.09-pre-01141a2b8d914a90 (Flounder)
  • Nix version: nix-env (Nix) 1.11.2
  • Nixpkgs version: 16.09-pre-ba221e4f00074840

cc @ttuegel @peti

@peti peti added the 0.kind: question Requests for a specific question to be answered label Apr 13, 2016
bendlas added a commit to bendlas/emacs2nix that referenced this issue Apr 13, 2016
@peti
Copy link
Member

peti commented Jul 19, 2016

If you want a specific version of a Hackage package, please use:

`callHackage "my-package" "my-version" {}` 

The haskellPackage set itself is not going to keep old versions around any longer since we can generate any Hackage package we want on the fly.

@peti peti closed this as completed Jul 19, 2016
@bendlas
Copy link
Contributor Author

bendlas commented Jul 19, 2016

@peti I think you're misunderstanding. This ticket is not about keeping old versions, but about providing a versioned package name, even for the default versions. Right now, future versions are named like xyz_1_23, but when they become default, they lose the suffix and are named like xyz. This is a problem for dependents, that are maintained manually. This ticket is about keeping a versioned alias, even for the default versions. This won't affect closure size at all. Please consider reopening and fixing this.

@peti
Copy link
Member

peti commented Jul 19, 2016 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: question Requests for a specific question to be answered 6.topic: haskell
Projects
None yet
Development

No branches or pull requests

3 participants