-
Notifications
You must be signed in to change notification settings - Fork 32
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
Merger? #34
Comments
@dmjio thanks for the effort to merge efforts :) I'm very supportive of this since we ought to have one tool that covers the use case of generating Nix expressions from stack2nix. There are a couple of things going on, including our future improvements we'd like to make to stack2nix which do align with your question.
To fix 1) and address your issues, this would fall into the category of #5 and I'd like to hear from @jmitchell what he thinks about this plan. |
@dmjio so to merge code bases we need to evaluate if using |
@domenkozar, happy to participate :)
|
|
@domenkozar very nice :) yes, very helpful. Does this mean the dependency on |
@dmjio that's the plan at least, let's see if it works :) |
@domenkozar Awesome, thanks for your work on this. |
@domenkozar, fantastic, I'll give it a go 🍻 |
Hi @jmitchell, I've been attempting to use
stack2nix
to generate nix expressions forGHCJS
packages. I had trouble trying to specify--compiler ghcjs
whenstack2nix
gets run, since (afaik) the command line arguments tostack2nix
aren't the same as what is given tocabal2nix
.This led to some digging into the code and I noticed
cabal2nix
was being ran as a subprocess, and the generated nix was being parsed byhnix
, and the lines related totestHaskellDepends
andbenchmarkHaskellDepends
are being removed from the nix AST in order to satisfy nix during builds (sincestack
doesn't include test dependencies in thestack list-dependencies
output).In an attempt to support
GHCJS
packages, I began a small rewrite that simply passes the command line arguments fromstack2nix
to every invocation ofcabal2nix
directly (with minor modification). This led to a PR incabal2nix
that exposed theDerivation
type fromlanguage-nix
(NixOS/cabal2nix@cb2265e) which should obviate the need to usehnix
instack2nix
.https://github.com/dmjio/nixFromStack
Just like
stack2nix
, The generatednix
is in a format that can be used in the same way ashackage-packages.nix
.I'm not sure if
nixFromStack
can do everythingstack2nix
can do, but, if possible, was wondering if you'd be interested in combining efforts in some way. Like merge the two code bases, however hairy that process may be.The text was updated successfully, but these errors were encountered: