Skip to content
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

How do I write a Nix expression for new Lua packages? #25926

Closed
tomjaguarpaw opened this issue May 19, 2017 · 6 comments
Closed

How do I write a Nix expression for new Lua packages? #25926

tomjaguarpaw opened this issue May 19, 2017 · 6 comments

Comments

@tomjaguarpaw
Copy link

I need to install the Lua packages

  • dpnn
  • csvigo
  • torchx
  • tds

They are available from luarocks. I have looked in pkgs/top-level/lua-packages.nix but I don't understand it because this is my first time writing Nix expressions. Can anyone give me a hand?

@Mic92
Copy link
Member

Mic92 commented May 19, 2017

Can you make a more concrete question, what you don't understand? Otherwise I would suggest to join #nixos on IRC to get a more interactive introduction.

@tomjaguarpaw
Copy link
Author

I've never built a Lua package before and I've never written a Nix expression before so I'm in the worst possible place to make progress with this problem. Nonetheless I think these packages would be a good addition to the Nix ecosystem. Could someone who knows about Lua and Nix specifically help me out?

As will be able to see from the #nixos logs I have been there this afternoon but no one could help me with this specific issue.

@tomjaguarpaw
Copy link
Author

@domenkozar Any chance you could help out with this when you get some time?

@teto
Copy link
Member

teto commented Sep 5, 2017

You can have a look at https://nixos.org/nixpkgs/manual/#sec-language-lua.
The best solution would be to import luarocks available packages into nixos.

@tomberek
Copy link
Contributor

Close as answered?

@tomjaguarpaw
Copy link
Author

I am no longer trying Nix or Lua so I can't verify whether the answer works or not. AFAIR I already knew about the section of the manual that teto linked to so I imagine I tried it and it didn't work for the lua packages that I wanted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants