mount-zip: add passthru.updateScript and versionCheckHook

This commit is contained in:
Petr Portnov
2025-02-13 20:49:53 +03:00
parent 9339f7a20f
commit 3aafac9303
+12
View File
@@ -8,6 +8,8 @@
libzip,
pandoc,
pkg-config,
versionCheckHook,
gitUpdater,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -37,6 +39,16 @@ stdenv.mkDerivation (finalAttrs: {
makeFlags = [ "PREFIX=$(out)" ];
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];
doInstallCheck = true;
passthru = {
updateScript = gitUpdater { rev-prefix = "v"; };
};
meta = {
description = "FUSE file system for ZIP archives";
homepage = "https://github.com/google/mount-zip";