mount-zip: add passthru.updateScript and versionCheckHook
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user