KDE: Difference between revisions
Add section "Hacking" |
m →Using a single diff from a remote URL: Fix formatting (command on separate line) |
||
Line 160: | Line 160: | ||
A KDE developer might have provided a diff that one wants to utilize locally to test it or to make use of it until it's included in an upcoming release. | A KDE developer might have provided a diff that one wants to utilize locally to test it or to make use of it until it's included in an upcoming release. | ||
# Generate the SRI hash of the file:<code>nix store prefetch-file <nowiki>https://invent.kde.org/plasma/powerdevil/-/commit/f731c18e377b87c57f7205d9c1812a34f588c577.diff</nowiki> --json --name toggle-nightlight.diff</code> | # Generate the SRI hash of the file: <code>nix store prefetch-file <nowiki>https://invent.kde.org/plasma/powerdevil/-/commit/f731c18e377b87c57f7205d9c1812a34f588c577.diff</nowiki> --json --name toggle-nightlight.diff</code> | ||
# Override the <code>patches</code> attribute of the <code>powerdevil</code>package:<syntaxhighlight lang="nix"> | # Override the <code>patches</code> attribute of the <code>powerdevil</code>package:<syntaxhighlight lang="nix"> | ||
kdePackages = prev.kdePackages.overrideScope(kdeFinal: kdePrev: { | kdePackages = prev.kdePackages.overrideScope(kdeFinal: kdePrev: { |