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
intero-nix-shim: init at 0.1.0 #24853
Conversation
@michalrus, thanks for your PR! By analyzing the history of the files in this pull request, we identified @peti, @mdorman and @pikajude to be potential reviewers. |
intero-nix-shim = import (pkgs.fetchFromGitHub { | ||
owner = "michalrus"; | ||
repo = "intero-nix-shim"; | ||
rev = "5b3fc9aa8900ca635467b6e8f5597161303eff33"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use a tag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure!
@shlevy, here’s a first sketch of the README → https://github.com/michalrus/intero-nix-shim#readme It feels too complicated. :/ |
6041d1d
to
e0c4f00
Compare
@michalrus So does |
I’ve been wondering about that, but finally decided to do: So |
Feel free to change anything in that initial sketch, I’ve just given you RW access, but it works for me. ^_^ |
Hmm... I don't know if I love that. What if I don't have |
Me neither, but then it would be really hard to determine GHCi’s (Intero’s) real arguments. :( Cabal adds a lot. Once intero is running, you can see that in htop or ps or … We’d need to duplicate their work to determine them. |
Can we hard-code a reference to |
Nice idea! But it’d also be desirable to hard-code It would simplify users’ |
Yep! |
I’m on it! |
BTW, it may be interesting to look at |
e0c4f00
to
7daec8a
Compare
@shlevy, paths symlinked to Also, the README is updated accordingly. It’s simpler now! https://github.com/michalrus/intero-nix-shim#readme |
I might need some help with that first build job failing… =( The other two are 🍏 . |
Which build job? |
This PR on Travis → https://travis-ci.org/NixOS/nixpkgs/builds/221563087 |
Oh, travis is pure noise. |
@peti any objection here? |
Do we really need import-from-derivation here? This feature has several unpleasant side-effects in Nix/Hydra today and I'd rather not use it for a package that Hydra is going to discover and build. |
Ah, missed that. @michalrus Can you check in the cabal2nix expr? |
Sure, whatever is necessary! I just didn’t want to commit auto-generated code, but if it’s needed, sure. Where should I put it? Or… should I splice it straight into Could you point me to some issues/docs to read about these side effects? This seems interesting. |
@peti any preference for where it should live? |
(I’ll be offline for a few days, so if we don’t finish today, and you want it finished today/tomorrow, don’t hesitate to take this over :) ). |
7daec8a
to
9bd0e55
Compare
Bump. =] |
@peti ping? @michalrus I'll find a place for it in a few days if there's nothing from @peti |
@shlevy, thank you! 🙇♂️ In the meantime, I modified README not to disorient users. |
@michalrus Can you just create an |
@shlevy, is this better? =) I followed the |
Thank you! :) |
Cherry-picked onto 17.03: a162c6c |
Motivation for this change
Currently, there is no way to use Intero (Haskell IDE in Emacs) with Nix-based Haskell projects, you have to use Stack for managing your projects. This small package can be used in place of Stack, making Intero work with pure Haskell/Nix projects.
Things done
./result/bin/
)/cc @shlevy =)