{ stdenv, lib, fetchFromGitHub, unstableGitUpdater, cmake, zlib, }: stdenv.mkDerivation { pname = "vgmtools"; version = "0.1-unstable-2026-01-10"; src = fetchFromGitHub { owner = "vgmrips"; repo = "vgmtools"; rev = "2e0754f2f2ca815bc6d4050c9e8c2bc188bd1581"; hash = "sha256-pq11cqDLlQIv8WLmlV4weZogYXInWB1QxJEBzGx7CPQ="; }; 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 = { homepage = "https://github.com/vgmrips/vgmtools"; description = "Collection of tools for the VGM file format"; license = lib.licenses.gpl2Only; # Not clarified whether Only or Plus maintainers = with lib.maintainers; [ OPNA2608 ]; platforms = lib.platforms.all; }; }