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