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
beam-packages: init elixir_ls 0.7.0 #118950
Conversation
b988bdc
to
4e8e4bc
Compare
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.
Since this is just copying someone else's code, wouldn't it need a copyright notice as required by the license?
Damn, and here I wanted to be the first one to package something with the new The project builds, and runs fine. Tested with NixOS and LanguageClient-neovim. I haven't tested the debugger, since I don't have a VS code installation. One weird thing is that
Another possibility would be to ask the original developer for his explicit permission. I also think a mention of its origins in a comment would be nice. I don't think recall having a precedent in nixpkgs where the derivation code mentions its previous license. Now, I am not a lawyer, but Nixpkgs is also licensed under MIT, with a copyright to edolstra and Nixpkgs/NixOS contributors, and it seems @hauleth has contributed to Nixpkgs, so the Nixpkgs license should be a superset of the one from @hauleth's repository? But I think it's still better to have his explicit permission. |
4e8e4bc
to
51be589
Compare
more than happy to include anything @hauleth judges appropriate. @minijackson This one doesn't count, it's just a copy paste. You can still be the first one that packages something original! :-) Also regarding the nixpkgs-review I've added elixir_ls to all_packages, it looks like it's working |
That needs fixing rather sooner than later because ofborg does not detect eval errors in this case.
Adding him to the commit as an author is enough. His code is also licensed under MIT. |
@@ -11586,7 +11586,8 @@ in | |||
inherit (beam.interpreters) | |||
erlang erlangR23 erlangR22 erlangR21 erlangR20 erlangR19 erlangR18 | |||
erlang_odbc erlang_javac erlang_odbc_javac erlang_basho_R16B02 | |||
elixir elixir_1_11 elixir_1_10 elixir_1_9 elixir_1_8 elixir_1_7; | |||
elixir elixir_1_11 elixir_1_10 elixir_1_9 elixir_1_8 elixir_1_7 | |||
elixir_ls; |
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.
This should be done automatically for all packages because we don't want to maintain a list of packages here.
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.
I've added the suggested fix. Since it was adding some other packages on top, I've removed those.
Waiting for the build to check.
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.
I ran into an interesting problem here.
You can recursively add packages, that was not a problem.
The solution looked something like
beam = (let
packages = callPackage ./beam-packages.nix { };
interpreters = packages.interpreters;
in
packages // removeAttrs interpreters [ "lfe" "lfe_1_2" "lfe_1_3" ]);
However you still need to inherit those. I haven't found a way to recursively inherit something.
So unless I am missing something, we need to keep the current syntax
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.
I think you need to use passthru in the packages for those attributes.
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.
I have opened a separate issue for this
#119201
just so that it doesn't block this PR.
Result of 1 package built:
|
91daa57
to
277a21d
Compare
Result of 1 package built:
|
277a21d
to
9f7025b
Compare
22e903e
to
306f325
Compare
Regarding contribution, if I added a message in the commit saying something like
Would that work for you @balsoft ? |
It's not up to me to decide, ask @hauleth . |
sure, I would say let's leave it like this for a week and we can try to think of an intermediate solution if there is no feedback. |
@balsoft @happysalada You can just add comment on top
And it will be enough for me |
306f325
to
5bd81e6
Compare
I'm planning on leaving this open until next monday 19th of April. |
Thanks a lot @happysalada, @hauleth and everyone else - I tried to add this a long time ago, and it's a pleasure to see a good PR. Waiting for April 19th |
Motivation for this change
add elixir_ls to nixpkgs
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)additional context
This is pretty much copyPasta from https://github.com/hauleth/nix-elixir/blob/master/lib/elixir-ls.nix
@minijackson @hauleth @NobbZ @afontaine @balsoft @yurrriq @cw789 you might be interested in this