chawan: correct license and add versionCheckHook (#430193)

This commit is contained in:
Aleksana
2025-08-02 16:44:05 +08:00
committed by GitHub
+8 -1
View File
@@ -12,6 +12,7 @@
brotli,
zlib,
gitUpdater,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -73,13 +74,19 @@ stdenv.mkDerivation (finalAttrs: {
wrapProgram $out/bin/mancha ${makeWrapperArgs}
'';
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
versionCheckProgramArg = "--version";
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
meta = {
description = "Lightweight and featureful terminal web browser";
homepage = "https://sr.ht/~bptato/chawan/";
changelog = "https://git.sr.ht/~bptato/chawan/refs/v${finalAttrs.version}";
license = lib.licenses.publicDomain;
license = lib.licenses.unlicense;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ ];
mainProgram = "cha";