depot/third_party/nixpkgs/pkgs/tools/audio/vgmtools/default.nix

45 lines
931 B
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, unstableGitUpdater
, cmake
, zlib
}:
stdenv.mkDerivation rec {
pname = "vgmtools";
version = "unstable-2023-01-27";
src = fetchFromGitHub {
owner = "vgmrips";
repo = "vgmtools";
rev = "fc55484b5902191e5467e6044bb90c1c74a0c938";
sha256 = "Ho0yYoe1TIlVxMauz/harP1xSw42wdcklj/O6fA+VEk=";
};
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;
};
}