Feed of "polyphony/workflows" https://codeberg.org/polyphony/workflows A collection of useful workflows for getting a new Rust project up and running. Thu, 16 Apr 2026 04:48:19 +0200 ava opened issue polyphony/workflows#4 https://codeberg.org/polyphony/workflows/issues/4 4#License header checks (REUSE)# Being REUSE compliant would be nice. Since we are using MPL-2.0 in most of our repos, it is especially important to include a license header in every file, since MPL-2.0 copyleft is file-based. I believe there is a pre-commit REUSE tool which we can use for this. The other, already existing license header check should be removed, since it has been broken for ages.

Acceptance Criteria

  • REUSE compliance checks in target repository at nix flake check-time.
  • Fail check on missing license header
  • Also apply REUSE checks for this repository itself
]]>
ava 119305818: https://codeberg.org/polyphony/workflows/issues/4 Sun, 05 Apr 2026 16:02:12 +0200
ava pushed to flori/improvements at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/a48e59d5e9ebdadda9e73ea8e582d34a11648f0c <a href="https://codeberg.org/polyphony/workflows/commit/a48e59d5e9ebdadda9e73ea8e582d34a11648f0c">a48e59d5e9ebdadda9e73ea8e582d34a11648f0c</a> chore: rename .github/ to .forgejo/ a48e59d5e9ebdadda9e73ea8e582d34a11648f0c chore: rename .github/ to .forgejo/]]> ava 85617164: https://codeberg.org/polyphony/workflows/commit/a48e59d5e9ebdadda9e73ea8e582d34a11648f0c Fri, 02 Jan 2026 14:48:16 +0100 ava created branch flori/improvements in polyphony/workflows https://codeberg.org/polyphony/workflows/src/branch/flori/improvements ava 85617140: https://codeberg.org/polyphony/workflows/src/branch/flori/improvements Fri, 02 Jan 2026 14:48:16 +0100 ava opened issue polyphony/workflows#3 https://codeberg.org/polyphony/workflows/issues/3 3#PostgreSQL# PostgreSQL is a commonly used piece of software within the polyphony repositories. In the context of Rust, it is often depended upon by compile-time SQL validation checks.

The workflows repository should have an easy way of including a PostgreSQL database in the workspace environment, if needed. A working base can be found in the sonata repository, where the flake.nix and scripts/db.sh files together provide an easy way to interact with a PostgreSQL database. It would suffice if this solution were adapted slightly and added into this repository here.

]]>
ava 70439039: https://codeberg.org/polyphony/workflows/issues/3 Wed, 05 Nov 2025 01:43:20 +0100
Henry-Hiles commented on pull request polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-7202893 feat: The Great Ennixification <p dir="auto">Wow, absolutely insane job on this, looks great!</p> Wow, absolutely insane job on this, looks great!

]]>
Henry-Hiles 59000545: https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-7202893 Mon, 15 Sep 2025 22:31:11 +0200
ava deleted branch nix from polyphony/workflows https://codeberg.org/polyphony/workflows ava 56101420: https://codeberg.org/polyphony/workflows Tue, 02 Sep 2025 14:42:19 +0200 ava merged pull request polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2 feat: The Great Ennixification ava 56101183: https://codeberg.org/polyphony/workflows/pulls/2 Tue, 02 Sep 2025 14:42:17 +0200 ava pushed to main at polyphony/workflows https://codeberg.org/polyphony/workflows/compare/4f001731a175a04bd6d2936e923e3d91b8f210bd...776ec5e99085d20a7cb9f07b3e16993242bd1697 <a href="https://codeberg.org/polyphony/workflows/commit/776ec5e99085d20a7cb9f07b3e16993242bd1697">776ec5e99085d20a7cb9f07b3e16993242bd1697</a> Merge pull request &#39;feat: The Great Ennixification&#39; (#2) from nix into main <a href="https://codeberg.org/polyphony/workflows/commit/900259c34b4e935718ec4b8e1baa1442e42f7d9f">900259c34b4e935718ec4b8e1baa1442e42f7d9f</a> module[devshell]: move configuration options into perSystem <a href="https://codeberg.org/polyphony/workflows/commit/9fc21ef0f44003d190b877525161e56817082812">9fc21ef0f44003d190b877525161e56817082812</a> readme: correct toolchain docs <a href="https://codeberg.org/polyphony/workflows/commit/8ad5ada1d8204bb911bbeb2ec439c7fce4b67f8f">8ad5ada1d8204bb911bbeb2ec439c7fce4b67f8f</a> docs: convert to callPackage-style derivation <a href="https://codeberg.org/polyphony/workflows/commit/ccd457a909d3eeb03e24b4b2ab83443585113694">ccd457a909d3eeb03e24b4b2ab83443585113694</a> docs: only evaluate polyphony options, remove fixupModule 776ec5e99085d20a7cb9f07b3e16993242bd1697 Merge pull request 'feat: The Great Ennixification' (#2) from nix into main 900259c34b4e935718ec4b8e1baa1442e42f7d9f module[devshell]: move configuration options into perSystem 9fc21ef0f44003d190b877525161e56817082812 readme: correct toolchain docs 8ad5ada1d8204bb911bbeb2ec439c7fce4b67f8f docs: convert to callPackage-style derivation ccd457a909d3eeb03e24b4b2ab83443585113694 docs: only evaluate polyphony options, remove fixupModule]]> ava 56101165: https://codeberg.org/polyphony/workflows/compare/4f001731a175a04bd6d2936e923e3d91b8f210bd...776ec5e99085d20a7cb9f07b3e16993242bd1697 Tue, 02 Sep 2025 14:42:17 +0200 ava approved polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6856912 feat: The Great Ennixification ava 56101072: https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6856912 Tue, 02 Sep 2025 14:41:16 +0200 ava commented on pull request polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6856909 feat: The Great Ennixification <p dir="auto">That&#39;s so cool! Thanks!</p> That's so cool! Thanks!

]]>
ava 56101048: https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6856909 Tue, 02 Sep 2025 14:41:01 +0200
srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/900259c34b4e935718ec4b8e1baa1442e42f7d9f <a href="https://codeberg.org/polyphony/workflows/commit/900259c34b4e935718ec4b8e1baa1442e42f7d9f">900259c34b4e935718ec4b8e1baa1442e42f7d9f</a> module[devshell]: move configuration options into perSystem 900259c34b4e935718ec4b8e1baa1442e42f7d9f module[devshell]: move configuration options into perSystem]]> srxl 56032231: https://codeberg.org/polyphony/workflows/commit/900259c34b4e935718ec4b8e1baa1442e42f7d9f Tue, 02 Sep 2025 07:29:46 +0200 srxl commented on pull request polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6852076 feat: The Great Ennixification <p dir="auto">Snuck in one last change, and moved devshell options under <code>perSystem</code>, which makes a bit more sense. That way, <code>extraPackages</code> doesn&#39;t need to be a function and can just be a plain list, since you have a <code>pkgs</code> set available to you already in <code>perSystem</code>.</p> Snuck in one last change, and moved devshell options under perSystem, which makes a bit more sense. That way, extraPackages doesn't need to be a function and can just be a plain list, since you have a pkgs set available to you already in perSystem.

]]>
srxl 56032180: https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6852076 Tue, 02 Sep 2025 07:27:20 +0200
srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/840fdc08410dd6c080b3e8257dd93b860da42995 <a href="https://codeberg.org/polyphony/workflows/commit/840fdc08410dd6c080b3e8257dd93b860da42995">840fdc08410dd6c080b3e8257dd93b860da42995</a> module[devshell]: move configuration options into perSystem 840fdc08410dd6c080b3e8257dd93b860da42995 module[devshell]: move configuration options into perSystem]]> srxl 56031814: https://codeberg.org/polyphony/workflows/commit/840fdc08410dd6c080b3e8257dd93b860da42995 Tue, 02 Sep 2025 07:25:51 +0200 srxl commented on pull request polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6851368 feat: The Great Ennixification <p dir="auto">It actually already is! That docs file is generated from the option definitions in the Nix modules - see <a href="https://codeberg.org/polyphony/workflows/src/branch/nix/modules/rust.nix#L65-L80" rel="nofollow">this one</a> for an example. The actual bit that generates the docs is <a href="https://codeberg.org/polyphony/workflows/src/branch/nix/packages/docs.nix" rel="nofollow">here</a>, and you can generate them by running <code>nix build .#docs</code> in the repo. I do need to figure out a good way to automatically do that like I mentioned in the PR message, though.</p> It actually already is! That docs file is generated from the option definitions in the Nix modules - see this one for an example. The actual bit that generates the docs is here, and you can generate them by running nix build .#docs in the repo. I do need to figure out a good way to automatically do that like I mentioned in the PR message, though.

]]>
srxl 56021242: https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6851368 Tue, 02 Sep 2025 04:30:47 +0200
ava approved polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6849316 feat: The Great Ennixification <p dir="auto">I really like this PR a lot! To be fair, I do not understand the nix parts, but it is beautifully built and documented, and that&#39;s pretty amazing! Thank you so much for the effort you have put into this! <span class="emoji" aria-label="purple heart" data-alias="purple_heart">💜</span></p> I really like this PR a lot! To be fair, I do not understand the nix parts, but it is beautifully built and documented, and that's pretty amazing! Thank you so much for the effort you have put into this! 💜

]]>
ava 55986343: https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6849316 Mon, 01 Sep 2025 22:16:00 +0200
ava commented on pull request polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6849271 feat: The Great Ennixification <p dir="auto">This file is super, super nice and helpful! I am wondering though: Couldn&#39;t this documentation also be inlined with the <code>.nix</code> files?</p> This file is super, super nice and helpful! I am wondering though: Couldn't this documentation also be inlined with the .nix files?

]]>
ava 55984687: https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6849271 Mon, 01 Sep 2025 22:13:29 +0200
srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/9fc21ef0f44003d190b877525161e56817082812 <a href="https://codeberg.org/polyphony/workflows/commit/9fc21ef0f44003d190b877525161e56817082812">9fc21ef0f44003d190b877525161e56817082812</a> readme: correct toolchain docs 9fc21ef0f44003d190b877525161e56817082812 readme: correct toolchain docs]]> srxl 55813639: https://codeberg.org/polyphony/workflows/commit/9fc21ef0f44003d190b877525161e56817082812 Mon, 01 Sep 2025 03:19:19 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/compare/db25bfcf6ca5a4f7944a1e40e70ca9c8d8f63532...8ad5ada1d8204bb911bbeb2ec439c7fce4b67f8f <a href="https://codeberg.org/polyphony/workflows/commit/8ad5ada1d8204bb911bbeb2ec439c7fce4b67f8f">8ad5ada1d8204bb911bbeb2ec439c7fce4b67f8f</a> docs: convert to callPackage-style derivation <a href="https://codeberg.org/polyphony/workflows/commit/ccd457a909d3eeb03e24b4b2ab83443585113694">ccd457a909d3eeb03e24b4b2ab83443585113694</a> docs: only evaluate polyphony options, remove fixupModule 8ad5ada1d8204bb911bbeb2ec439c7fce4b67f8f docs: convert to callPackage-style derivation ccd457a909d3eeb03e24b4b2ab83443585113694 docs: only evaluate polyphony options, remove fixupModule]]> srxl 55813135: https://codeberg.org/polyphony/workflows/compare/db25bfcf6ca5a4f7944a1e40e70ca9c8d8f63532...8ad5ada1d8204bb911bbeb2ec439c7fce4b67f8f Mon, 01 Sep 2025 03:11:55 +0200 ava commented on pull request polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6833581 feat: The Great Ennixification <p dir="auto">I think <a href="/alinarielle" class="mention" rel="nofollow">@alinarielle</a> wanted to review this; I&#39;ll leave this open for ~24h (if there is no further response /nm) before I&#39;d review it myself</p> I think @alinarielle wanted to review this; I'll leave this open for ~24h (if there is no further response /nm) before I'd review it myself

]]>
ava 55740463: https://codeberg.org/polyphony/workflows/pulls/2#issuecomment-6833581 Sun, 31 Aug 2025 16:24:01 +0200
srxl created pull request polyphony/workflows#2 https://codeberg.org/polyphony/workflows/pulls/2 2#feat: The Great Ennixification# Whew, this is a big one. But, in line with #1, this PR makes the first steps to transition (🏳️‍⚧️) this repo to something that can be consumed through Nix. There's a few things happening in here, so hopefully I've done a good enough job describing it all in the README, and giving an example of it's usage in template.

If you want to test any of this locally, replace the URL for this repo in the setup command and the generated flake's inputs with git+https://codeberg.org/polyphony/workflows?ref=nix. Should work, it's what I've been doing to test anyway.

There's still a few things that need to be tackled:

  • Actually convert the workflows over. I'm going to hold off on that until polyphony/chorus#631 is good to go, so we can take it's common bits and bring them in here.
  • Automatic docs.md generation somehow, so we don't need to manually keep it in sync with the modules themselves.

This should be a good start, though. Feel free to hit me with any questions about this one.

]]>
srxl 55675681: https://codeberg.org/polyphony/workflows/pulls/2 Sun, 31 Aug 2025 07:00:53 +0200
srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/db25bfcf6ca5a4f7944a1e40e70ca9c8d8f63532 <a href="https://codeberg.org/polyphony/workflows/commit/db25bfcf6ca5a4f7944a1e40e70ca9c8d8f63532">db25bfcf6ca5a4f7944a1e40e70ca9c8d8f63532</a> docs: generate links to main branch db25bfcf6ca5a4f7944a1e40e70ca9c8d8f63532 docs: generate links to main branch]]> srxl 55675156: https://codeberg.org/polyphony/workflows/commit/db25bfcf6ca5a4f7944a1e40e70ca9c8d8f63532 Sun, 31 Aug 2025 06:52:13 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/65b937c6d891e6f03fda64282fa07f32698c09de <a href="https://codeberg.org/polyphony/workflows/commit/65b937c6d891e6f03fda64282fa07f32698c09de">65b937c6d891e6f03fda64282fa07f32698c09de</a> README: add more usage documentation 65b937c6d891e6f03fda64282fa07f32698c09de README: add more usage documentation]]> srxl 55675111: https://codeberg.org/polyphony/workflows/commit/65b937c6d891e6f03fda64282fa07f32698c09de Sun, 31 Aug 2025 06:50:44 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/deb4584270b1e379daba7c7f73c58ec1615e0360 <a href="https://codeberg.org/polyphony/workflows/commit/deb4584270b1e379daba7c7f73c58ec1615e0360">deb4584270b1e379daba7c7f73c58ec1615e0360</a> README: add more usage documentation deb4584270b1e379daba7c7f73c58ec1615e0360 README: add more usage documentation]]> srxl 55675072: https://codeberg.org/polyphony/workflows/commit/deb4584270b1e379daba7c7f73c58ec1615e0360 Sun, 31 Aug 2025 06:49:59 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/4a4a1e94690070c003280f5b54b690e376cd2bc6 <a href="https://codeberg.org/polyphony/workflows/commit/4a4a1e94690070c003280f5b54b690e376cd2bc6">4a4a1e94690070c003280f5b54b690e376cd2bc6</a> docs: generate links to repo files 4a4a1e94690070c003280f5b54b690e376cd2bc6 docs: generate links to repo files]]> srxl 55673341: https://codeberg.org/polyphony/workflows/commit/4a4a1e94690070c003280f5b54b690e376cd2bc6 Sun, 31 Aug 2025 06:11:32 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/67c105d2657441b0df760c5530cd80ad08213d09 <a href="https://codeberg.org/polyphony/workflows/commit/67c105d2657441b0df760c5530cd80ad08213d09">67c105d2657441b0df760c5530cd80ad08213d09</a> docs: misc improvements 67c105d2657441b0df760c5530cd80ad08213d09 docs: misc improvements]]> srxl 55672846: https://codeberg.org/polyphony/workflows/commit/67c105d2657441b0df760c5530cd80ad08213d09 Sun, 31 Aug 2025 05:57:00 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/e8bc69a6f68ed25540eba7a93128ca5656fba204 <a href="https://codeberg.org/polyphony/workflows/commit/e8bc69a6f68ed25540eba7a93128ca5656fba204">e8bc69a6f68ed25540eba7a93128ca5656fba204</a> docs: misc improvements e8bc69a6f68ed25540eba7a93128ca5656fba204 docs: misc improvements]]> srxl 55672789: https://codeberg.org/polyphony/workflows/commit/e8bc69a6f68ed25540eba7a93128ca5656fba204 Sun, 31 Aug 2025 05:55:11 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/67fe1ec52c46bbdb1f12b750f86ff0192392b272 <a href="https://codeberg.org/polyphony/workflows/commit/67fe1ec52c46bbdb1f12b750f86ff0192392b272">67fe1ec52c46bbdb1f12b750f86ff0192392b272</a> docs: misc improvements 67fe1ec52c46bbdb1f12b750f86ff0192392b272 docs: misc improvements]]> srxl 55672750: https://codeberg.org/polyphony/workflows/commit/67fe1ec52c46bbdb1f12b750f86ff0192392b272 Sun, 31 Aug 2025 05:53:36 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/3be2d723c7b5aa33a65b00ff03c7d23eef763917 <a href="https://codeberg.org/polyphony/workflows/commit/3be2d723c7b5aa33a65b00ff03c7d23eef763917">3be2d723c7b5aa33a65b00ff03c7d23eef763917</a> docs: generate docs, include generated version 3be2d723c7b5aa33a65b00ff03c7d23eef763917 docs: generate docs, include generated version]]> srxl 55672435: https://codeberg.org/polyphony/workflows/commit/3be2d723c7b5aa33a65b00ff03c7d23eef763917 Sun, 31 Aug 2025 05:43:10 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/68523d6ce62b4fb75d4dca3642d4aed009c2e50e <a href="https://codeberg.org/polyphony/workflows/commit/68523d6ce62b4fb75d4dca3642d4aed009c2e50e">68523d6ce62b4fb75d4dca3642d4aed009c2e50e</a> module[git-hooks]: add treefmt if configured 68523d6ce62b4fb75d4dca3642d4aed009c2e50e module[git-hooks]: add treefmt if configured]]> srxl 55580869: https://codeberg.org/polyphony/workflows/commit/68523d6ce62b4fb75d4dca3642d4aed009c2e50e Sat, 30 Aug 2025 18:31:35 +0200 srxl pushed to nix at polyphony/workflows https://codeberg.org/polyphony/workflows/commit/1896b3aed7a353bab0ade00a5d4444f29b267662 <a href="https://codeberg.org/polyphony/workflows/commit/1896b3aed7a353bab0ade00a5d4444f29b267662">1896b3aed7a353bab0ade00a5d4444f29b267662</a> module[rust]: more flexible interface for rust package definitions 1896b3aed7a353bab0ade00a5d4444f29b267662 module[rust]: more flexible interface for rust package definitions]]> srxl 55557826: https://codeberg.org/polyphony/workflows/commit/1896b3aed7a353bab0ade00a5d4444f29b267662 Sat, 30 Aug 2025 16:58:48 +0200