!kjdutkOsheZdjqYmqp:nixos.org

Nixpkgs / NixOS contributions

1862 Members
NixOS 24.05 Uakari | #review-requests:nixos.org | https://nixos.org/blog/announcements.html#nixos-23.11 | https://hydra.nixos.org/jobset/nixos/trunk-combined | https://reproducible.nixos.org/ | 24.05 RMs: wegank & Mic92410 Servers

Load older messages


SenderMessageTime
20 Oct 2024
@tomodachi94:matrix.orgTomodachi94Does anyone know if stuebinm's nixq has any documentation? Investigating it to see if it can help me semi-automatically do a treewide change (replacing qt5.mkDerivation with stdenv.mkDerivation in most cases).04:39:03
@tomodachi94:matrix.orgTomodachi94 Does anyone know if stuebinm's nixq has any documentation? Investigating it to see if it can help me semi-automatically do a treewide change (replacing qt5.mkDerivation with stdenv.mkDerivation in most cases and adding qt5.wrapQt5Apps). 04:40:51
@tomodachi94:matrix.orgTomodachi94 cc @stue:matrix.org, who might be stuebinm? 04:45:08
@emilazy:matrix.orgemilyprevious discussion fwiw https://matrix.to/#/!kjdutkOsheZdjqYmqp:nixos.org/$BNb-xIiQz6tsVHvZZAAMmVkBV0lGCXig0Ovmoqqf-Rc?via=nixos.org&via=matrix.org&via=nixos.dev04:46:46
@emilazy:matrix.orgemilyI would like to write a general-purpose Nix refactoring framework04:48:34
@emilazy:matrix.orgemilyI do not think anything exists currently that can reliably achieve the kind of thing you are going for04:48:45
@emilazy:matrix.orgemilybut I would like one to exist04:49:11
@emilazy:matrix.orgemily my understanding is that most uses of Qt 5 in Nixpkgs might not have that long to live anyway though. you may wish to coordinate with K900 04:49:42
@tomodachi94:matrix.orgTomodachi94 I have an idea that involves basically chaining a bunch of sed invocations and also accounts for the preexisting formatting at the same time (shudder), but that falls apart when I need to insert something 04:50:51
@tomodachi94:matrix.orgTomodachi94 I had an idea that involves basically chaining a bunch of sed invocations and also accounts for the preexisting formatting at the same time (shudder), but that falls apart when I need to insert something 04:50:58
@tomodachi94:matrix.orgTomodachi94
In reply to@emilazy:matrix.org
my understanding is that most uses of Qt 5 in Nixpkgs might not have that long to live anyway though. you may wish to coordinate with K900
See also, the tracking issue for this: https://github.com/NixOS/nixpkgs/issues/180841
04:52:20
@emilazy:matrix.orgemily
In reply to @tomodachi94:matrix.org
I had an idea that involves basically chaining a bunch of sed invocations and also accounts for the preexisting formatting at the same time (shudder), but that falls apart when I need to insert something
if you can rely on nixfmt then you can do horrible things like replace nativeBuildInputs = [
04:52:55
@emilazy:matrix.orgemilybut yes, not being able to think of a good way to do a build inputs-affecting refactor for macOS stuff is why I started planning a proper framework04:53:20
@tomodachi94:matrix.orgTomodachi94
In reply to@emilazy:matrix.org
if you can rely on nixfmt then you can do horrible things like replace nativeBuildInputs = [
Yep, Another tricky thing that nixfmt might have fixed would be removing the "import" of qt5.mkDerivation when it uses qt5.callPackage (the format is wildly inconsistent)
04:54:27
@tomodachi94:matrix.orgTomodachi94 I had an idea that involves basically chaining a bunch of sed invocations that also account for the preexisting formatting at the same time (shudder), but that falls apart when I need to insert something 04:54:48
@emilazy:matrix.orgemily I think it would be okay to nixfmt files before touching them 04:54:59
@emilazy:matrix.orgemilygoing by ripgrep results, we're talking about some ~40 packages?04:56:06
@emilazy:matrix.orgemilyI think you're best off just doing it manually04:56:10
@tomodachi94:matrix.orgTomodachi94I do have a script that lists most of the problematic files (afaik)04:56:11
@tomodachi94:matrix.orgTomodachi94
In reply to@emilazy:matrix.org
going by ripgrep results, we're talking about some ~40 packages?
Closer to 600, qt5.callPackage obscures them
04:56:28
@emilazy:matrix.orgemily i was grepping for qt5.callPackage, i guess i did it wrong 04:56:39
@tomodachi94:matrix.orgTomodachi94
In reply to@emilazy:matrix.org
i was grepping for qt5.callPackage, i guess i did it wrong
I also did something similar initially 🙈 https://github.com/NixOS/nixpkgs/issues/180841#issuecomment-2423659515
04:57:36
@emilazy:matrix.orgemily oh, because libsForQt5. 04:57:53
@emilazy:matrix.orgemilyI believe that the Plasma 5 parts of those will go away at some point according to K900's intention04:58:15
@emilazy:matrix.orgemily so you could perhaps ignore pkgs/applications/kde 04:58:29
@tomodachi94:matrix.orgTomodachi94
In reply to@emilazy:matrix.org
oh, because libsForQt5.
Didn't even think about qt5.mkDerivation too, completely missed that
04:58:51
@tomodachi94:matrix.orgTomodachi94(I did a treewide that fixed most of the libsForQt5-prefixed invocations, except one that I accidentally skipped)04:59:35
@tomodachi94:matrix.orgTomodachi94* (I manually did a treewide that fixed most of the libsForQt5-prefixed invocations, except one that I accidentally skipped)04:59:41
@emilazy:matrix.orgemilyyeah. sadly the best options are manual work or writing a hacky bespoke tool right now. that may change soon depending on how macOS stuff goes05:01:42
@emilazy:matrix.orgemily you could coordinate something like https://github.com/NixOS/nixpkgs/issues/326513 if you have a good list of affected packages, but for Qt 5 a lot of them probably won't be around forever (e.g. K900 wants to get rid of Plasma 5, we'll probably have to drop qtwebengine once upstream stops supporting it, etc.), so I would try to ensure you don't waste effort on stuff that will be removed 05:02:57

Show newer messages


Back to Room ListRoom Version: 6