1{ stdenv
2, lib
3, fetchFromGitHub
4, unstableGitUpdater
5, cmake
6, zlib
7}:
8
9stdenv.mkDerivation rec {
10 pname = "vgmtools";
11 version = "unstable-2023-08-27";
12
13 src = fetchFromGitHub {
14 owner = "vgmrips";
15 repo = "vgmtools";
16 rev = "7b7f2041e346f0d4fff8c834a763edc4f4d88896";
17 hash = "sha256-L52h94uohLMnj29lZj+i9hM8n9hIYo20nRS8RCW8npY=";
18 };
19
20 nativeBuildInputs = [
21 cmake
22 ];
23
24 buildInputs = [
25 zlib
26 ];
27
28 # Some targets are not enabled by default
29 makeFlags = [
30 "all" "optdac" "optvgm32"
31 ];
32
33 passthru.updateScript = unstableGitUpdater {
34 url = "https://github.com/vgmrips/vgmtools.git";
35 };
36
37 meta = with lib; {
38 homepage = "https://github.com/vgmrips/vgmtools";
39 description = "A collection of tools for the VGM file format";
40 license = licenses.gpl2; # Not clarified whether Only or Plus
41 maintainers = with maintainers; [ OPNA2608 ];
42 platforms = platforms.all;
43 };
44}