<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nixos/nixpkgs.git/pkgs/build-support/make-hardcode-gsettings-patch, branch master</title>
<subtitle>Nix Packages collection</subtitle>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/'/>
<entry>
<title>makeHardcodeGsettingsPatch: Fix `schemaExistsFunction` w/o stdbool.h</title>
<updated>2025-05-17T17:55:04+00:00</updated>
<author>
<name>Jan Tojnar</name>
<email>jtojnar@gmail.com</email>
</author>
<published>2025-05-17T17:55:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=5309164a9632bbe971a3b8915f6e0164962d9be0'/>
<id>5309164a9632bbe971a3b8915f6e0164962d9be0</id>
<content type='text'>
If project uses C and does not include `stdbool.h`,
it will not have available lowercase booleans.
However, since this tool targets GLib programs,
we can rely on uppercase constants defined by GLib.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If project uses C and does not include `stdbool.h`,
it will not have available lowercase booleans.
However, since this tool targets GLib programs,
we can rely on uppercase constants defined by GLib.
</pre>
</div>
</content>
</entry>
<entry>
<title>makeHardcodeGsettingsPatch: Add support for `schemaExistsFunction`</title>
<updated>2025-05-08T16:29:49+00:00</updated>
<author>
<name>Jan Tojnar</name>
<email>jtojnar@gmail.com</email>
</author>
<published>2025-05-08T12:20:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=e50f76c7d09667f255cf64590e4e0acdb7ecf4d2'/>
<id>e50f76c7d09667f255cf64590e4e0acdb7ecf4d2</id>
<content type='text'>
evolution-ews introduced a check for optional schemas, which would skip our hardcoded code paths.
https://gitlab.gnome.org/GNOME/evolution-ews/-/commit/a0c514bd345c67fe0fd2ed6ef48a25649b1f4d8e

Let’s update the semantic patch to also replace the invocations of specified `schemaExistsFunction` for known schemas with `true`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
evolution-ews introduced a check for optional schemas, which would skip our hardcoded code paths.
https://gitlab.gnome.org/GNOME/evolution-ews/-/commit/a0c514bd345c67fe0fd2ed6ef48a25649b1f4d8e

Let’s update the semantic patch to also replace the invocations of specified `schemaExistsFunction` for known schemas with `true`.
</pre>
</div>
</content>
</entry>
<entry>
<title>build-support/make-hardcode-gsettings-patch: replace `git` with `gitMinimal`</title>
<updated>2025-01-09T20:02:44+00:00</updated>
<author>
<name>Pol Dellaiera</name>
<email>pol.dellaiera@protonmail.com</email>
</author>
<published>2025-01-04T16:28:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=2974863439d344118c2b2d8e592eb015ebee09b6'/>
<id>2974863439d344118c2b2d8e592eb015ebee09b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>treewide: format all inactive Nix files</title>
<updated>2024-12-10T19:27:17+00:00</updated>
<author>
<name>Silvan Mosberger</name>
<email>silvan.mosberger@tweag.io</email>
</author>
<published>2024-12-10T19:27:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=667d42c00d566e091e6b9a19b365099315d0e611'/>
<id>667d42c00d566e091e6b9a19b365099315d0e611</id>
<content type='text'>
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 57b193d8ddeaf4f5219d2bae1d23b081e4906e57
    result/bin/apply-formatting $NIXPKGS_PATH
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 57b193d8ddeaf4f5219d2bae1d23b081e4906e57
    result/bin/apply-formatting $NIXPKGS_PATH
</pre>
</div>
</content>
</entry>
<entry>
<title>makeHardcodeGsettingsPatch: Support applying patches</title>
<updated>2023-11-21T07:42:47+00:00</updated>
<author>
<name>Jan Tojnar</name>
<email>jtojnar@gmail.com</email>
</author>
<published>2023-11-13T01:48:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=bc41b2db3db188be72ab71919893b160d44c98d9'/>
<id>bc41b2db3db188be72ab71919893b160d44c98d9</id>
<content type='text'>
This is useful for replacing code that cannot be easily handled by the generator,
such as the tentative settings constructor in e-d-s.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is useful for replacing code that cannot be easily handled by the generator,
such as the tentative settings constructor in e-d-s.
</pre>
</div>
</content>
</entry>
<entry>
<title>makeHardcodeGsettingsPatch: Improve docs</title>
<updated>2023-11-21T07:42:47+00:00</updated>
<author>
<name>Jan Tojnar</name>
<email>jtojnar@gmail.com</email>
</author>
<published>2023-11-13T01:13:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=6f695f3d92be6b9994d69f3de2eaffb9d6b94f92'/>
<id>6f695f3d92be6b9994d69f3de2eaffb9d6b94f92</id>
<content type='text'>
- Describe arguments and usage in more detail.
- Use finalAttrs in example.
- Use schema id, not path.
- Schema id is not what is replaced.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Describe arguments and usage in more detail.
- Use finalAttrs in example.
- Use schema id, not path.
- Schema id is not what is replaced.
</pre>
</div>
</content>
</entry>
<entry>
<title>makeHardcodeGsettingsPatch: Support other constructors</title>
<updated>2022-12-19T16:38:57+00:00</updated>
<author>
<name>Jan Tojnar</name>
<email>jtojnar@gmail.com</email>
</author>
<published>2022-12-15T20:20:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=4346dee4243e2f3b900b710cf800a1ee7309d2b1'/>
<id>4346dee4243e2f3b900b710cf800a1ee7309d2b1</id>
<content type='text'>
In addition to `g_settings_new`, there are three other GSettings constructors:
https://docs.gtk.org/gio/ctor.Settings.new.html
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In addition to `g_settings_new`, there are three other GSettings constructors:
https://docs.gtk.org/gio/ctor.Settings.new.html
</pre>
</div>
</content>
</entry>
<entry>
<title>makeHardcodeGsettingsPatch: Rename from glib.mkHardcodeGsettingsPatch</title>
<updated>2022-12-19T16:17:32+00:00</updated>
<author>
<name>Jan Tojnar</name>
<email>jtojnar@gmail.com</email>
</author>
<published>2022-12-15T19:25:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.tavy.me/nixos/nixpkgs.git/commit/?id=35d24b51f536cf3ead96b284e862ef8d9fe47edc'/>
<id>35d24b51f536cf3ead96b284e862ef8d9fe47edc</id>
<content type='text'>
glib expression is messy enough as is.

Also rename the `glib-schema-to-var` argument to `schemaIdToVariableMapping` to better match Nixpkgs coding style.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
glib expression is messy enough as is.

Also rename the `glib-schema-to-var` argument to `schemaIdToVariableMapping` to better match Nixpkgs coding style.
</pre>
</div>
</content>
</entry>
</feed>
