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

elm.elmPackages: Cleanup code #70011

Merged
merged 1 commit into from Oct 16, 2019

Conversation

turboMaCk
Copy link
Member

Be aware that this is chore so it's probably low-priority PR

Cleaning up the mess I made over several months adding elm tooling to hopefully easier to understand and more maitainable structure.

  • separation of HS and node based tools
  • removal of elm-live from nodeModules
  • expose elmPackages.lib.patchBinwrap

This will need a code quality review

  • Is this separation of node and elm based packages what we want?

  • Is it ok to just remove elm-live from nodePackages (maybe we should first mark it as deprecated?)

  • Is it fine to expose lib.patchBinwrap

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)

  • Built on platform(s)

    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)

  • Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"

  • Tested execution of all binary files (usually in ./result/bin/)

  • Determined the impact on package closure size (by running nix path-info -S before and after)

  • Ensured that relevant documentation is up to date

  • Fits CONTRIBUTING.md.

Notify maintainers

cc @domenkozar

hsPkgs = haskell.packages.ghc865.override {
overrides = self: super: with haskell.lib;
let elmPkgs = rec {
elm = overrideCabal (self.callPackage ./packages/elm.nix { }) (drv: {
# sadly with parallelism most of the time breaks compilation
# also compilation is slower with increasing number of cores anyway (Tested on Ryzen 7 and i7)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added this comment in past as a note for myself but forgot to remove it. I don't think it's important enough to keep it there.

@turboMaCk
Copy link
Member Author

  • made sure all other elmPackages.* PRs are merged
  • rebased onto master
  • squashed into single commit

This is ready to be merged from my side.

@domenkozar
Copy link
Member

@GrahamcOfBorg build elmPackages

@domenkozar domenkozar merged commit d2c1303 into NixOS:master Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants