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

Reduce nix closure size of set-git-rev #468

Merged
merged 1 commit into from
Apr 28, 2021
Merged

Conversation

rvl
Copy link
Contributor

@rvl rvl commented Mar 11, 2021

With cardano-wallet, I noticed that build dependencies of set-git-rev were not cached. Furthermore some of these dependencies were pythonbzrnix-prefetch-scripts.

The problem is nixpkgs callCabal2nix, so this replaces it with Haskell.nix.

There are other things in haskell-nix-extra which can be deprecated, so I have removed them with deprecation errors traced where possible.

Comments

This PR will stay draft until I have made and fully tested the corresponding update in cardano-wallet.

With cardano-wallet, I noticed that build dependencies of set-git-rev
were not cached. Furthermore some of these dependencies were
python ← bzr ← nix-prefetch-scripts.

The problem is nixpkgs `callCabal2nix`, so this replaces it with
Haskell.nix.

There are other things in `haskell-nix-extra` which can be deprecated,
so I have removed them with deprecation errors traced where possible.
@rvl rvl self-assigned this Mar 11, 2021
@jbgi jbgi mentioned this pull request Apr 27, 2021
iohk-bors bot added a commit that referenced this pull request Apr 28, 2021
470: Flake r=craigem a=jbgi

based on top of #468

Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
Co-authored-by: Jean-Baptiste Giraudeau <jean-baptiste.giraudeau@iohk.io>
@iohk-bors iohk-bors bot merged commit 1d8ef53 into master Apr 28, 2021
@iohk-bors iohk-bors bot deleted the rvl/reduce-closure-size branch April 28, 2021 02:11
iohk-bors bot added a commit that referenced this pull request Apr 29, 2021
471: Clean up haskell-nix-extra-packages r=rvl a=rvl

Follow-ups from PR #468.

- Removes the `haskell-nix-extra-packages` attrset - it's not needed anywhere and didn't work anyway.
- Expose `project` and `mkProject` attributes of `pkgs.haskellBuildUtils`. This would let downstream users generate materializations, etc, etc.

Tested on cardano-foundation/cardano-wallet#2628.

Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
iohk-bors bot added a commit that referenced this pull request Apr 29, 2021
471: Clean up haskell-nix-extra-packages r=rvl a=rvl

Follow-ups from PR #468.

- Removes the `haskell-nix-extra-packages` attrset - it's not needed anywhere and didn't work anyway.
- Expose `project` and `mkProject` attributes of `pkgs.haskellBuildUtils`. This would let downstream users generate materializations, etc, etc.

Tested on cardano-foundation/cardano-wallet#2628.

Co-authored-by: Rodney Lorrimar <rodney.lorrimar@iohk.io>
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

1 participant