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
Make slstatus able to patch from diff #96675
Conversation
Make slstatus able to patch from diff
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.
Thanks for this Pull Request. However, I am not quite sure about its use.
What should switching the config file creation from preBuild
to postPatch
change? Both phases are after the patch action. Afaik, slstatus
does nothing in the configurePhase
.
Could you please elaborate and perhaps give an example which worked after those changes? Thanks.
according to st, you can look here https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/misc/st/default.nix, which is able to patch, then i guess it will work on slstatus, prebuild do skipping config phase while postpatch work. That's the example. |
while prebuild need more configuration i guess? postpatch just patch the "inherit" patch given so the order here matter. |
How is it going @oxzi ? |
Please excuse the delay on my side. This PR slipped under my radar.
I'm not sure if I understood you correctly, but botch However, the current state is to use Nevertheless this Thus, the execution order is the same: |
Dear @oxzi, as I said before, according to st which you can look here and dwm here both do use postpatch and was able to patch if i give an input diff there, in nix.config.st.patches = [ diff here ] or nix.config.dwm.patches = [ diff here ], based on both apps i'll do the same here to slstatus and hoped it able to patch, and of course those are not using the ./configure thingy cause yes you mention the philosopy, honestly i still don't know how to like 'sandboxing' this thing, if you were know how, just let me know. |
As I tried to explain to you in previous post, your commit introduces no difference in the current
Like always, the devil is in the detail. Let's have a look at the top level package collection where the package derivations are called. nixpkgs/pkgs/top-level/all-packages.nix Lines 23208 to 23212 in 1cbec3b
nixpkgs/pkgs/top-level/all-packages.nix Lines 20240 to 20242 in 1cbec3b
nixpkgs/pkgs/top-level/all-packages.nix Lines 7007 to 7009 in 1cbec3b
Both |
Ahhh so, so, the top-level thingy, hope you introduced it to slstatus soon, can't wait for it, you can close this pull req then, anyway, you haven't mention how to test the package, still i don't know, perhaps if i know, i'll become the maintainer right then haha. |
Yes sorry, some things are not too obvious in Nix at first sight. Why don't you want to add this change? Perhaps in this very Pull Request? |
I want, but as I said, I didn't know how to test it, perhaps it will end up like this haha. |
Don't be afraid of failure, just try it out. A good first pointer would be the quick start guide. In a nutshell, you have to clone the |
Make slstatus able to patch from diff
Motivation for this change
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)