From 317f6166f4e21d8922da883ed7624ffb08596ca7 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Mon, 18 May 2026 14:11:02 +0300 Subject: [PATCH] pomsky: add nix-update-script --- pkgs/by-name/po/pomsky/package.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/po/pomsky/package.nix b/pkgs/by-name/po/pomsky/package.nix index 930f2aaed671..ba55025ba4a5 100644 --- a/pkgs/by-name/po/pomsky/package.nix +++ b/pkgs/by-name/po/pomsky/package.nix @@ -4,6 +4,8 @@ fetchFromGitHub, pkg-config, oniguruma, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -32,9 +34,17 @@ rustPlatform.buildRustPackage (finalAttrs: { RUSTONIG_SYSTEM_LIBONIG = true; }; - # thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: invalid option '--test-threads'' + # Compatibility tests run against different regex implementations. + # Some can be run by providing `jdk*_headless` and `python3` `nativeCheckInputs`, + # while some cannot, i.e. `deno`-based requires network access and `dotnet-script` is not packaged, + # and they cannot be disabled partially. doCheck = false; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Portable, modern regular expression language"; mainProgram = "pomsky";