Skip to content

Commit 95ff727

Browse files
authored
mount-zip: 1.0.15 -> 1.6 (#373348)
2 parents 74b68c6 + 3aafac9 commit 95ff727

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

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

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

1315
stdenv.mkDerivation (finalAttrs: {
1416
pname = "mount-zip";
15-
version = "1.0.15";
17+
version = "1.6";
1618

1719
src = fetchFromGitHub {
1820
owner = "google";
1921
repo = "mount-zip";
2022
rev = "v${finalAttrs.version}";
21-
hash = "sha256-7S+mZ6jejD9wCqFYfJ0mE2jCKt77S64LEAgAIV2DPqA=";
23+
hash = "sha256-akiZwuwrsj+62TmZEJamlvQ1rSyFA4hrH0TcZ8T97z4=";
2224
};
2325

2426
strictDeps = true;
@@ -35,19 +37,33 @@ stdenv.mkDerivation (finalAttrs: {
3537
libzip
3638
];
3739

38-
makeFlags = [ "prefix=$(out)" ];
40+
makeFlags = [ "PREFIX=$(out)" ];
3941

40-
meta = with lib; {
42+
nativeInstallCheckInputs = [
43+
versionCheckHook
44+
];
45+
versionCheckProgramArg = [ "--version" ];
46+
doInstallCheck = true;
47+
48+
passthru = {
49+
updateScript = gitUpdater { rev-prefix = "v"; };
50+
};
51+
52+
meta = {
4153
description = "FUSE file system for ZIP archives";
4254
homepage = "https://github.com/google/mount-zip";
55+
changelog = "https://github.com/google/mount-zip/releases/tag/v${finalAttrs.version}";
4356
longDescription = ''
4457
mount-zip is a tool allowing to open, explore and extract ZIP archives.
4558
4659
This project is a fork of fuse-zip.
4760
'';
48-
license = licenses.gpl3;
49-
maintainers = with maintainers; [ arti5an ];
50-
platforms = platforms.linux;
61+
license = lib.licenses.gpl3;
62+
maintainers = with lib.maintainers; [
63+
arti5an
64+
progrm_jarvis
65+
];
66+
platforms = lib.platforms.linux;
5167
mainProgram = "mount-zip";
5268
};
5369
})

0 commit comments

Comments
 (0)