2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, unstableGitUpdater
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, zlib
|
|
|
|
, libvgm
|
|
|
|
, inih
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vgmplay-libvgm";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "unstable-2023-04-12";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValleyBell";
|
|
|
|
repo = "vgmplay-libvgm";
|
2023-04-29 16:46:19 +00:00
|
|
|
rev = "813abab549e99bb7e936acbfa1199cf435c237c6";
|
|
|
|
sha256 = "sdQO+xk3a7AFXo3jpbcuNBkd19PjKoBMRhr4IK06oHg=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ zlib libvgm inih ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 ../VGMPlay.ini $out/share/vgmplay/VGMPlay.ini
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
url = "https://github.com/ValleyBell/vgmplay-libvgm.git";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
mainProgram = "vgmplay";
|
|
|
|
homepage = "https://github.com/ValleyBell/vgmplay-libvgm";
|
|
|
|
description = "New VGMPlay, based on libvgm";
|
|
|
|
license = licenses.unfree; # no licensing text anywhere yet
|
|
|
|
maintainers = with maintainers; [ OPNA2608 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|