{ stdenv, lib, fetchFromGitHub, unstableGitUpdater, cmake, zlib, }: stdenv.mkDerivation { pname = "vgmtools"; version = "0.1-unstable-2025-08-20"; src = fetchFromGitHub { owner = "vgmrips"; repo = "vgmtools"; rev = "7e071f9fff11031e6bbe3ccc73d180be08727804"; hash = "sha256-GTdMLDGVAeV4aIrnKYc/NE1FVU5DS1TspeTcx4qwUQA="; }; nativeBuildInputs = [ cmake ]; buildInputs = [ zlib ]; # Some targets are not enabled by default makeFlags = [ "all" "optdac" "optvgm32" ]; passthru.updateScript = unstableGitUpdater { url = "https://github.com/vgmrips/vgmtools.git"; }; meta = with lib; { homepage = "https://github.com/vgmrips/vgmtools"; description = "Collection of tools for the VGM file format"; license = licenses.gpl2Only; # Not clarified whether Only or Plus maintainers = with maintainers; [ OPNA2608 ]; platforms = platforms.all; }; }