lucasvreis / org-mode-hs

Libraries and tool for parsing Org Mode documents with customizable exporters. 🦄
GNU General Public License v3.0
21 stars 5 forks source link

add nix support #3

Closed GTrunSec closed 1 year ago

GTrunSec commented 2 years ago

You can choose whether to merge or not, just to help some nix users use org-parser easily.

srid commented 2 years ago

@GTrunSec Have you considered using plain nixpkgs (pkgs.haskellPackages) here? It has the advantage of giving you a faster nix-shell compared to that of haskell.nix. The latter is also a more complex to deal with. Here's an example: https://github.com/srid/haskell-template/blob/master/flake.nix

EDIT: More relevant example, https://github.com/lucasvreis/abacateiro/pull/3

lucasvreis commented 2 years ago

I appreciate the effort but I don't understand nix, so I will leave this open. The same goes for https://github.com/lucasvreis/abacateiro/pull/3. When things get more stable I can consider merging both, if any of you have interest in maintaining the support. And with some sort of CI that makes sure things aren't suddenly broken for nix users.

lucasvreis commented 1 year ago

To be fair I don't see the point of nix over cabal, eventually we can consider locking the executable dependencies using cabal freeze if needed. If the user has a supported GHC and cabal versions, it is supposed to build.