master ← dastarruer:syntax-highlighting-ankiAddon
opened 11:51PM - 06 Jan 26 UTC
Add the syntax-highlighting Anki addon, which allows you to insert syntax-highli… ghted code snippets in Anki flashcards.
@JuneStepp @ethancedwards8 This is unfinished because I have run into two problems.
1. This addon uses Python 2
2. This addon also reads from a configuration file
I have solved the first issue by removing a deprecated call to `.decode()` in the `postPatch` section. It's more of a workaround, and there may be a better way of fixing this that I'm unaware of.
This is the error from the second issue:
```
Anki 25.09.2 (3890e12c) (ao)
Python 3.13.11 Qt 6.10.1 PyQt 6.9.0
Platform: Linux-6.18.2-x86_64-with-glibc2.40
When loading syntax-highlighting:
Traceback (most recent call last):
File "/nix/store/0h314ypmpsanp3zlqxryrdcv1ij8g8rb-anki-25.09.2-lib/lib/python3.13/site-packages/aqt/addons.py", line 250, in loadAddons
__import__(addon.dir_name)
~~~~~~~~~~^^^^^^^^^^^^^^^^
File "/nix/store/k8z4ffch0qvr8n249w92qjw33hsj4nra-anki-addons/syntax-highlighting/__init__.py", line 15, in <module>
from . import main
File "/nix/store/k8z4ffch0qvr8n249w92qjw33hsj4nra-anki-addons/syntax-highlighting/main.py", line 37, in <module>
from .config import local_conf
File "/nix/store/k8z4ffch0qvr8n249w92qjw33hsj4nra-anki-addons/syntax-highlighting/config.py", line 177, in <module>
local_conf = getConfig()
File "/nix/store/k8z4ffch0qvr8n249w92qjw33hsj4nra-anki-addons/syntax-highlighting/config.py", line 160, in getConfig
meta = _addonMeta()
File "/nix/store/k8z4ffch0qvr8n249w92qjw33hsj4nra-anki-addons/syntax-highlighting/config.py", line 106, in _addonMeta
_writeAddonMeta(meta)
~~~~~~~~~~~~~~~^^^^^^
File "/nix/store/k8z4ffch0qvr8n249w92qjw33hsj4nra-anki-addons/syntax-highlighting/config.py", line 120, in _writeAddonMeta
with io.open(meta_path, 'w', encoding="utf-8") as f:
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 30] Read-only file system: '/nix/store/k8z4ffch0qvr8n249w92qjw33hsj4nra-anki-addons/syntax-highlighting/meta.json'
```
## Things done
- Built on platform:
- [x] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- Tested, as applicable:
- [ ] [NixOS tests] in [nixos/tests].
- [ ] [Package tests] at `passthru.tests`.
- [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
- [ ] Ran `nixpkgs-review` on this PR. See [nixpkgs-review usage].
- [ ] Tested basic functionality of all binary files, usually in `./result/bin/`.
- Nixpkgs Release Notes
- [ ] Package update: when the change is major or breaking.
- NixOS Release Notes
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
- [x] Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.
[NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
[Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
[nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage
[CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
[lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
[maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
[nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
[pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
[pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test
---
Add a :+1: [reaction] to [pull requests you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[pull requests you find important]: https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+sort%3Areactions-%2B1-desc
This has already been reviewed by two other maintainers, just needs to be merged.
jchw
February 16, 2026, 6:50pm
2811
I am once again posting one of my own (already reviewed) PRs, but in this case it’s because I think it will reduce future committer/reviewer load for the Ghidra package by allowing auto-merge updates, so please excuse
master ← jchw-forks:ghidra-auto-update
opened 11:05PM - 08 Oct 25 UTC
Updating the ghidra derivations is usually pretty trivial. Other than the patche… s needing to be rebased occasionally, almost all of it could just be automated trivially... so we should do that, probably :)
(This was tested by manually downgrading ghidra and ghidra-bin to 11.4.1 and making sure the updateScripts were able to bring them up to 11.4.2 properly, updating hashes and other fields.)
## Things done
- Built on platform:
- [x] x86_64-linux
- [ ] aarch64-linux
- [ ] x86_64-darwin
- [ ] aarch64-darwin
- Tested, as applicable:
- [ ] [NixOS tests] in [nixos/tests].
- [ ] [Package tests] at `passthru.tests`.
- [ ] Tests in [lib/tests] or [pkgs/test] for functions and "core" functionality.
- [ ] Ran `nixpkgs-review` on this PR. See [nixpkgs-review usage].
- [ ] Tested basic functionality of all binary files, usually in `./result/bin/`.
- Nixpkgs Release Notes
- [ ] Package update: when the change is major or breaking.
- NixOS Release Notes
- [ ] Module addition: when adding a new NixOS module.
- [ ] Module update: when the change is significant.
- [x] Fits [CONTRIBUTING.md], [pkgs/README.md], [maintainers/README.md] and other READMEs.
[NixOS tests]: https://nixos.org/manual/nixos/unstable/index.html#sec-nixos-tests
[Package tests]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md#package-tests
[nixpkgs-review usage]: https://github.com/Mic92/nixpkgs-review#usage
[CONTRIBUTING.md]: https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md
[lib/tests]: https://github.com/NixOS/nixpkgs/blob/master/lib/tests
[maintainers/README.md]: https://github.com/NixOS/nixpkgs/blob/master/maintainers/README.md
[nixos/tests]: https://github.com/NixOS/nixpkgs/blob/master/nixos/tests
[pkgs/README.md]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/README.md
[pkgs/test]: https://github.com/NixOS/nixpkgs/blob/master/pkgs/test
---
Add a :+1: [reaction] to [pull requests you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[pull requests you find important]: https://github.com/NixOS/nixpkgs/pulls?q=is%3Aopen+sort%3Areactions-%2B1-desc