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

Various improvements to ./regenerate-nixpkgs.sh #462

Merged
merged 1 commit into from Jun 19, 2020

Conversation

maralorn
Copy link
Member

  • Ability to checkout cabal2nix tags
  • Use nix-shell
  • Clone all-cabal-hashes if necessary
  • More helpful output

I couldn't figure out how to install cabal2nix.env without cabal2nix itself via the shebang, but I believe that this still provides the dependencies to cabal.

@peti
Copy link
Member

peti commented Jun 19, 2020

Here is one more suggestion:

$ cabal --with-compiler="$(cat $(nix-build --no-out-link "<nixpkgs>" -A haskellPackages.cabal2nix.env))/bin/ghc" run hackage2nix -- dflags auth oa stuho

* Ability to checkout cabal2nix tags
* Use nix-shell
* Clone all-cabal-hashes if necessary
* use a worktree checkout of cabal2nix to not interfere with the
  cabal2nix repo
* More helpful output
@peti peti merged commit 681d546 into NixOS:master Jun 19, 2020
@maralorn maralorn deleted the regenerate-nixpkgs branch June 19, 2020 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants