haskell.nix icon indicating copy to clipboard operation
haskell.nix copied to clipboard

Enable separate data output more aggressively

Open michaelpj opened this issue 5 years ago • 7 comments

cabal2nix (and hence nixpkgs) does it whenever there are data files.

Ours is turned off by default, which in practice means it's basically not used.

michaelpj avatar Oct 29 '20 12:10 michaelpj

Maybe a nix-tools bug, actually.

michaelpj avatar Oct 29 '20 12:10 michaelpj

We have a 2.5GB docker image currently (because a couple of packages with data files bring in the entire GHC stack into our docker image.)

dysinger avatar Mar 18 '21 18:03 dysinger

Note that you can enable the option yourself if you know the offending packages. Obviously we should do it automatically, but it might help you cut that down in the short term.

michaelpj avatar Mar 18 '21 18:03 michaelpj

We ended up just setting it as a global value. It's probably the first thing I do on any haskell.nix project, just be sure.

purefn avatar Mar 18 '21 20:03 purefn

Things we could do, not sure which is preferable:

  • Default enableSeparateDataOutput to true in haskell.nix
  • Teach nix-tools to be cleverer about setting it when a package has data files

michaelpj avatar May 17 '22 09:05 michaelpj

Is there a downside to enabling it by default (even if there's no data-files field in a package)?

TravisWhitaker avatar May 17 '22 20:05 TravisWhitaker

No idea. I'm not sure if there's even ever a reason not to do it.

michaelpj avatar May 18 '22 09:05 michaelpj