-
-
Notifications
You must be signed in to change notification settings - Fork 15.3k
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
awesome: Make sure it compiles with luajit #71292
Conversation
I feel like the best way to do this would be to pass as buildInput a luaEnv equal to |
Furthermore, it would be even better to have a |
Do you know about the module ? lua modules in nixos/modules/services/x11/window-managers/awesome.nix via I have no strong opinon there, I dont use awesome. |
Personally, I like installing most of my general use software to my user environment and not configuring it via the module systems. |
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.
Looks good to me.
@rasendubi what do you think about the suggestion to have a wrapped and unwrapped version of nixpkgs/pkgs/applications/editors/neovim/default.nix Lines 1 to 26 in 7885eea
nixpkgs/pkgs/applications/editors/neovim/wrapper.nix Lines 1 to 59 in 7885eea
|
As long as we keep the awesome module API stable, I'm fine with the wrapper approach. As a bonus, it could remove a minor duplication between nixpkgs awesome module and home-manager's one. |
This will certainly enable removing the duplication but it will require changes to the Nixpkgs' module and home-manager's module similarly. Taking this into consideration, I think it'll be wiser to tackle this proposal in a separate PR. I don't use home-manager but I think my change won't break the way home-manager adds Lua modules to the search path. |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: |
This pull request has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/awesomewm-luamodules-apparently-not-taking-effect/8507/5 |
Motivation for this change
Say a user wishes to have a derivation of awesome that will use
luajitPackages
instead of the defaultlua52Packages
, he will probably use the following overlay:But, that will lead him to the following build error:
Applying this patch fixes this error and it will allow to easily build a working derivation of Awesome that uses LuaJIT.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @lovek323
cc @rasendubi
cc @ndowens