Skip to content

Commit 3aafac9

Browse files
committed
mount-zip: add passthru.updateScript and versionCheckHook
1 parent 9339f7a commit 3aafac9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

pkgs/by-name/mo/mount-zip/package.nix

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
libzip,
99
pandoc,
1010
pkg-config,
11+
versionCheckHook,
12+
gitUpdater,
1113
}:
1214

1315
stdenv.mkDerivation (finalAttrs: {
@@ -37,6 +39,16 @@ stdenv.mkDerivation (finalAttrs: {
3739

3840
makeFlags = [ "PREFIX=$(out)" ];
3941

42+
nativeInstallCheckInputs = [
43+
versionCheckHook
44+
];
45+
versionCheckProgramArg = [ "--version" ];
46+
doInstallCheck = true;
47+
48+
passthru = {
49+
updateScript = gitUpdater { rev-prefix = "v"; };
50+
};
51+
4052
meta = {
4153
description = "FUSE file system for ZIP archives";
4254
homepage = "https://github.com/google/mount-zip";

0 commit comments

Comments
 (0)