{ stdenv , lib , fetchFromGitHub , unstableGitUpdater , cmake , zlib }: stdenv.mkDerivation rec { pname = "vgmtools"; version = "unstable-2023-07-14"; src = fetchFromGitHub { owner = "vgmrips"; repo = "vgmtools"; rev = "1b880040e0f730f180ecd019cb06c3db717420d2"; hash = "sha256-6JNBQGVAs49l80ITKDabPFeN3XQtIH/RGhR7vIlMNxs="; }; 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 = "A collection of tools for the VGM file format"; license = licenses.gpl2; # Not clarified whether Only or Plus maintainers = with maintainers; [ OPNA2608 ]; platforms = platforms.all; }; }