{ stdenv, lib, fetchFromGitHub, unstableGitUpdater, cmake, zlib, }: stdenv.mkDerivation { pname = "vgmtools"; version = "0.1-unstable-2025-04-05"; src = fetchFromGitHub { owner = "vgmrips"; repo = "vgmtools"; rev = "cd9fb6c0693b28ea2c18511aa6416637bc5c91f6"; hash = "sha256-mdHGK2hru7F66lHQtEMpvys8ZzMQMGyzxvPj625bvn8="; }; 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; }; }