diff --git a/pkgs/by-name/mo/mount-zip/package.nix b/pkgs/by-name/mo/mount-zip/package.nix index 76e7c9ae7041..1940e8a8f268 100644 --- a/pkgs/by-name/mo/mount-zip/package.nix +++ b/pkgs/by-name/mo/mount-zip/package.nix @@ -8,17 +8,19 @@ libzip, pandoc, pkg-config, + versionCheckHook, + gitUpdater, }: stdenv.mkDerivation (finalAttrs: { pname = "mount-zip"; - version = "1.0.15"; + version = "1.6"; src = fetchFromGitHub { owner = "google"; repo = "mount-zip"; rev = "v${finalAttrs.version}"; - hash = "sha256-7S+mZ6jejD9wCqFYfJ0mE2jCKt77S64LEAgAIV2DPqA="; + hash = "sha256-akiZwuwrsj+62TmZEJamlvQ1rSyFA4hrH0TcZ8T97z4="; }; strictDeps = true; @@ -35,19 +37,33 @@ stdenv.mkDerivation (finalAttrs: { libzip ]; - makeFlags = [ "prefix=$(out)" ]; + makeFlags = [ "PREFIX=$(out)" ]; - meta = with lib; { + 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"; + changelog = "https://github.com/google/mount-zip/releases/tag/v${finalAttrs.version}"; longDescription = '' mount-zip is a tool allowing to open, explore and extract ZIP archives. This project is a fork of fuse-zip. ''; - license = licenses.gpl3; - maintainers = with maintainers; [ arti5an ]; - platforms = platforms.linux; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ + arti5an + progrm_jarvis + ]; + platforms = lib.platforms.linux; mainProgram = "mount-zip"; }; })