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
nnn: Fix configuration file #80878
nnn: Fix configuration file #80878
Conversation
@filalex77 are you able to test and approve this so I can merge? @MilesBreslin thanks for the contribution, sorry for the delay. If we don't hear anything back in a day or two ping me and I can test+merge. |
@MilesBreslin this package doesn't appear broken to me on
|
@aanderse There is a derivation override that allows for configuration. This configuration is done via a header file compiled into the executable. The package itself is not broken on master, but the configuration via this previously available method is and has been since v2.1, when nnn changed its repository layout. My commit changes the location that the config attribute adds the header file prior to building to the location that works with v2.1+. To show a test case, here is a nix statement which will evalutate to a derivation. Stick it in a nix-shell, nix-build or whatever, but this includes 2 versions, my version and a recent master branch. Change the pkgs statement to reflect which one you are building. This uses my configuration for nnn, which sets k to down and l to up. The current master branch ignores the configuration and will compile successfully, but my commit will use the given config file and apply it to the application.
|
@MilesBreslin thanks for sharing that. So I checked out your branch, downloaded your example
Seems like some c++ to c type errors. I assume I'm doing something obviously wrong... care to point it out? Thanks! |
@aanderse You're missing the Reguardless, that shows my commit is working :) |
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.
@MilesBreslin I agree. Thanks for the detailed explanation and fix! 👍
@GrahamcOfBorg build nnn |
Motivation for this change
nnn configuration is currently broken and has been since v2.1
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)