Skip to content

openboardview: update to 9.95.2 supporting cmake 4, a new update.sh script#453563

Closed
k3a wants to merge 2 commits intoNixOS:masterfrom
k3a:openboardview-9.95.2
Closed

openboardview: update to 9.95.2 supporting cmake 4, a new update.sh script#453563
k3a wants to merge 2 commits intoNixOS:masterfrom
k3a:openboardview-9.95.2

Conversation

@k3a
Copy link
Contributor

@k3a k3a commented Oct 19, 2025

A new update.sh script to fetch the latest release which is not a pre-release.
Updates the version to the latest one, including a patch fixing build on darwin.
Replaces #452764.
References: OpenBoardView/OpenBoardView#340

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • 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.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

@k3a k3a requested review from Sigmanificient and iedame October 19, 2025 17:10
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Oct 19, 2025
@Sigmanificient
Copy link
Member

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 453563
Commit: be46defacdf69f4c473b2bab02593be33df19691 (subsequent changes)
Merge: 34b8d889560448997380ad817c46d6658b549c55

Logs: https://github.com/Sigmanificient/nixpkgs-review-gha/actions/runs/18638966192


x86_64-linux

✅ 1 package built:
  • openboardview

aarch64-linux

✅ 1 package built:
  • openboardview

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • openboardview

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • openboardview

@k3a k3a marked this pull request as draft October 20, 2025 14:50
@k3a k3a force-pushed the openboardview-9.95.2 branch from be46def to 93016e9 Compare October 21, 2025 17:32
@k3a
Copy link
Contributor Author

k3a commented Oct 21, 2025

This PR now includes a single patch, which has been merged to the master of the OpenBoardView. In comparison to the previous version, it now includes an improved update.sh script which is using GitHub API to fetch the tag of the latest release.

@k3a k3a marked this pull request as ready for review October 21, 2025 17:39
@iedame
Copy link
Contributor

iedame commented Oct 26, 2025

nixpkgs-review result

Generated using nixpkgs-review-gha

Command: nixpkgs-review pr 453563
Commit: 93016e9c40f96da7e43d7a87649df0d2dd54e8c2 (subsequent changes)
Merge: e3f14d19fb8860fbbf1294fa45f055a3152f1fb1

Logs: https://github.com/iedame/nixpkgs-review-gha/actions/runs/18816074706


x86_64-linux

✅ 1 package built:
  • openboardview

aarch64-linux

✅ 1 package built:
  • openboardview

x86_64-darwin (sandbox = true)

✅ 1 package built:
  • openboardview

aarch64-darwin (sandbox = true)

✅ 1 package built:
  • openboardview

@digitalrane
Copy link
Contributor

Tested locally on x86_64 and the updated derivation builds a working openboardview.

passthru.updateScript = gitUpdater {
ignoredVersions = ''.*\.90\..*'';
};
passthru.updateScript = ./update.sh;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How is it different from nix-update-script?

Copy link
Contributor Author

@k3a k3a Nov 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same reason as for other packages that match
grep -r 'api.github.com.*release' NIXPKGS_ROOT | less — it retrieves the latest GitHub Release tag.
The built-in update script doesn’t use the GitHub API; it simply fetches the latest git tag. However, in the past, OpenBoardView has published some pre-release versions, which we’re not interested in — we only want official Releases.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just configuring gitUpdater with allowedVersions = "^[0-9\\.]+$"?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it's not so simply regular, please look at the release history and note releases marked as pre-release: https://github.com/OpenBoardView/OpenBoardView/releases?page=1

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This regex ignores pre-releases and only covers the stable releases.

Copy link
Member

@felixsinger felixsinger Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah... The GitHub releases are marked with pre-release, alpha and beta but not the tags. Sigh.

Copy link
Member

@felixsinger felixsinger Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please separate out the version bump from the rest? I would like to get this in ASAP. We can look at the updater script later.

Copy link
Contributor Author

@k3a k3a Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASAP? What’s stopping you from taking the package.nix file and building the new version locally on your computer?!

We need a proper updater script so that future updates are automatic and exclude pre-releases. Nix aims to maintain an up-to-date package repository by using update scripts. I wrote an update script based on many others in this repo.

The previous ignore regexp with a standard updater excluded recent OpenBoardView versions because it wasn’t sufficient. OpenBoardView uses GitHub’s release functionality to distinguish between releases and pre-releases.

So please look at the updater script now, it's just 16 script lines. I’ve already resolved the macOS build problem by submitting this PR upstream, simplifying the updates into just hash changes. Anyone can generate the hash for the new version - but what really matters now is that update script!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASAP? What’s stopping you from taking the package.nix file and building the new version locally on your computer?!

Why would I apply local hacks while the fix is dead simple and could have been merged weeks ago? Now the package is not just broken on unstable but also on the 25.11 branch. Great. But yeah.. don't mind it. The updater script is what matters. Sure.

Copy link
Contributor Author

@k3a k3a Nov 26, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Building a package from package.nix file is not a hack.

Obviously I didn't expect that making this simple updater script based on existing ones would cause the PR to be delayed for more than a month. :( If I knew, I would split it right away!

I did my part of work, sadly, no one was able to review the updater, including you (it seems).

@k3a k3a requested review from felixsinger and removed request for iedame November 25, 2025 22:11
@k3a
Copy link
Contributor Author

k3a commented Nov 27, 2025

OpenBoardView releases are quite a mess. Versions .90. are alpha, .95. are beta. owever, non-.90 and non-.95 versions can no longer be easily compiled with recent compilers, so we’re essentially forced to accept at least beta releases.

Pre-releases were used in the past, but they haven’t proven particularly useful. Closing this in favor of a simple update #465066 for now. Will consider re-reintroducing the update script in the future in case there is a stronger need for it.

@k3a k3a closed this Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants