Re: [Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-18 Thread Chris Marusich
Hi Profpatsch,

Thank you for the response!

Profpatsch  writes:

> On 17-04-08 11:17pm, Chris Marusich wrote:
>> Hi Nix devs!
>> 
>> What is the "perfect setup" for hacking on Nix?  Is there an IDE that
>> the you prefer to use?  Is there a C++ major mode for Emacs that you
>> can't live without?  Are there other helpful tools?
>
> A very good text editor. I can recommend Spacemacs.
> nix comes with a `nix-mode.el` file for Emacs.
> On Spacemacs, there is the `nixos` layer
> which is nice, if rudimentary.

I use emacs, myself, but I'm open to trying a different IDE if it's what
most of the Nix devs use.  Since Nix is implemented in C++, I guess any
C++ IDE (or modes/tools in emacs) would be helpful.  I was just curious
to know if any particular IDE or technology was heavily used by the Nix
community.  I've found that using the same tools as the rest of a dev
group can often be the path of least resistance and the most enjoyable
experience, regardless of what editor I personally prefer.

> Since nix is a relatively new DSL, the editor-support is lacking.
> Compared to Scheme at least.

I'm interested in browsing and modifying the Nix C++ source code, but of
course anything that helps make it easier to work with Nix expressions
is helpful, too!

> I recommend studying the nix-* tools in-depth, they are your
> main user interface. Particularly nix-store, nix-instantiate, nix-build.
> Also, nix-repl is very helpful (separate package).

Do you mean for getting the hang of Nix expressions?  That's a good
idea; when I play with Nix expressions, I'll keep this in mind.

-- 
Chris


signature.asc
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-15 Thread Marc Weber
If you want to change Vim, also have a look at
https://github.com/MarcWeber/vim-addon-errorformats
which allows to load multiple error formats and or 
https://github.com/MarcWeber/vim-addon-nix
which already has an implementation.

I personally never liked syntastic because it mixed running syntax
checks and running scripts in the same plugin, therefore I forke
https://github.com/MarcWeber/vim-addon-syntax-checker
It also allows defining multiple checkers and debug which one is
"usable" or not (for instance because executables are missing)

But that's my personal preference. Never added nix cause I use
vim-addon-nix.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-14 Thread William Casarin
Jörg Thalheim  writes:

> On 2017-04-14 16:03, William Casarin wrote:
>> Marc Weber  writes:
>>
>>> nix-instantiate --parse-only for syntax checking (vim-addon-nix on my
>>> github page, which also supports kind of follow import path
>>> implementation)
>> Is there any reason this hasn't been added to syntastic yet?
>>
>> This seems like an obvious addition to flycheck in emacs as well.
>
> I guess you just have to add a pull request.

It looks like I haven't updated my syntastic in two years:

https://github.com/vim-syntastic/syntastic/blob/5d9a0bc3877aea992292eeb6f318f4321fdef632/syntax_checkers/nix/nix.vim

Couldn't find anything for flycheck though. I'll look into adding that.

-- 
https://jb55.com
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-14 Thread Jörg Thalheim
On 2017-04-14 16:03, William Casarin wrote:
> Marc Weber  writes:
>
>> nix-instantiate --parse-only for syntax checking (vim-addon-nix on my
>> github page, which also supports kind of follow import path
>> implementation)
> Is there any reason this hasn't been added to syntastic yet?
>
> This seems like an obvious addition to flycheck in emacs as well.

I guess you just have to add a pull request.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-14 Thread William Casarin
Marc Weber  writes:

> nix-instantiate --parse-only for syntax checking (vim-addon-nix on my
> github page, which also supports kind of follow import path
> implementation)

Is there any reason this hasn't been added to syntastic yet?

This seems like an obvious addition to flycheck in emacs as well.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-13 Thread Profpatsch
On 17-04-11 09:28pm, Chris Marusich wrote:
> Since Nix is implemented in C++, I guess any
> C++ IDE (or modes/tools in emacs) would be helpful.  I was just curious
> to know if any particular IDE or technology was heavily used by the Nix
> community.

You normally don’t have to know any C++ for most tasks.
Working on the package manager itself is the smallest part,
nearly all of the work is done in nixpkgs,
that is: with nix expressions and lots of (bash) scripts.


-- 
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
https://mailman.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-11 Thread Profpatsch
On 17-04-08 11:17pm, Chris Marusich wrote:
> Hi Nix devs!
> 
> What is the "perfect setup" for hacking on Nix?  Is there an IDE that
> the you prefer to use?  Is there a C++ major mode for Emacs that you
> can't live without?  Are there other helpful tools?

A very good text editor. I can recommend Spacemacs.
nix comes with a `nix-mode.el` file for Emacs.
On Spacemacs, there is the `nixos` layer
which is nice, if rudimentary.

Since nix is a relatively new DSL, the editor-support is lacking.
Compared to Scheme at least.

I recommend studying the nix-* tools in-depth, they are your
main user interface. Particularly nix-store, nix-instantiate, nix-build.
Also, nix-repl is very helpful (separate package).

-- 
Proudly written in Mutt with Vim on NixOS.
Q: Why is this email five sentences or less?
A: http://five.sentenc.es
May take up to five days to read your message. If it’s urgent, call me.
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-11 Thread Marc Weber
ctagsWrapped -> simple nix support (so that you can jump to definitions)

nix-instantiate --parse-only for syntax checking (vim-addon-nix on my
github page, which also supports kind of follow import path
implementation)

Nix is dynamic, so there is not that much you can do (except creating
some templates or read code).

Hacking on C++ => ask the communities
  * Emacs
  * Vim
  * Eclipse
  * Atom
  * IDEA
  * Netbeans
  * (100 others)
and judge yourself :)

Typically you also want kind of "open file by typing some chars of the
name" feature.

Marc Weber
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[Nix-dev] What's the "perfect setup" for hacking on Nix?

2017-04-11 Thread Chris Marusich
Hi Nix devs!

What is the "perfect setup" for hacking on Nix?  Is there an IDE that
the you prefer to use?  Is there a C++ major mode for Emacs that you
can't live without?  Are there other helpful tools?

The Guix project has a section in its manual called "The Perfect Setup",
which recommends a particular set of tools for hacking on Guix.  When I
was first learning about Guix, I found it very useful:

https://www.gnu.org/software/guix/manual/html_node/The-Perfect-Setup.html#The-Perfect-Setup

I'm also interested in hacking on Nix, so I'm curious to know what a
comparable "perfect setup" would be for Nix.

-- 
Chris


signature.asc
Description: PGP signature
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev