How to convert .md to .pdf most efficently

I’m on NixOS unstable and installing pandoc alone would lead to these 160 paths will be fetched (298.60 MiB download, 3918.66 MiB unpacked):

I think this is absurd and tried to look into the source of the package to see if there are any options to uncheck but i didn’t see any.

  1. Is this install size normal? I don’t remember it being this excessive…
  2. What is the leanest way to convert .md to .pdf? I would be willing to just convert to .html and then open the file in my browser and “print” it as .pdf if this saves on dependencies/disk space.
1 Like

Oh damn, it’s not supposed to be this big, check the graph of the closure size on Hydra: Hydra - nixpkgs:trunk:pandoc.x86_64-linux, see how it previously was a fraction of what it is now.

Something must’ve gone wrong recently to make it explode this much.

1 Like

There’s already an open issue about this: Pandoc closure size has exploded again · Issue #264399 · NixOS/nixpkgs · GitHub

1 Like

Thanks! I just discovered htmldoc (only 5MB) and will give it a shot tomorrow.

Thanks for the heads up. This is definitely wrong, the Pandoc closure should be about 200Mb.

The fix is on its way: pandoc: remove GHC & haskell deps from closure, 5.2G => 250M by picnoir · Pull Request #264434 · NixOS/nixpkgs · GitHub