2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, unstableGitUpdater
|
|
|
|
, cmake
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vgmtools";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "unstable-2022-12-30";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vgmrips";
|
|
|
|
repo = "vgmtools";
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "6c2c21dfc871f8cb9c33a77fe7db01419b6ad97d";
|
|
|
|
sha256 = "qe8cHGf8X7JjjoiRQ/S3q/WhyvgrMEwsCo7QoQkmg5w=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
# Some targets are not enabled by default
|
|
|
|
makeFlags = [
|
|
|
|
"all" "opt_oki" "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;
|
|
|
|
};
|
|
|
|
}
|