NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.18k stars 14.19k forks source link

diffoscope: runtime dependency on ghc #167350

Open FRidh opened 2 years ago

FRidh commented 2 years ago

Describe the bug

Massive dependency.

Steps To Reproduce

Steps to reproduce the behavior:

  1. ...
  2. ...
  3. ...

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here
FRidh commented 2 years ago

Seems like bloat is enabled by default. I'd like to make the default the non-bloated version since IMO it is rare one needs all those extensions @dezgeg @ma27 @danielfullmer.

Ma27 commented 2 years ago

I'd like to make the default the non-bloated version since IMO it is rare one needs all those extensions

Agreed. also cc @SuperSandro2000

SuperSandro2000 commented 2 years ago

Is there anything in https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/misc/diffoscope/default.nix#L57-L60 which would be desirable to be moved out of bloat?

philiptaron commented 4 months ago

I really like how diffoscope works with everything (i.e. is bloated) by default. Consider me downvoting this proposal.

SuperSandro2000 commented 3 months ago

diffoscope is currently 8.7 GB in size and ghc is a whopping 2.3GB of that which is insane and normally not justifiable for an optional and rarely used feature.