2021-11-26 14:42:59 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, unstableGitUpdater
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, zlib
|
|
|
|
, libvgm
|
|
|
|
, inih
|
|
|
|
}:
|
|
|
|
|
2023-12-28 12:49:45 +01:00
|
|
|
stdenv.mkDerivation {
|
2021-11-26 14:42:59 +01:00
|
|
|
pname = "vgmplay-libvgm";
|
2024-02-07 17:05:05 +01:00
|
|
|
version = "0.51.1-unstable-2024-01-03";
|
2021-11-26 14:42:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ValleyBell";
|
|
|
|
repo = "vgmplay-libvgm";
|
2023-12-28 12:49:45 +01:00
|
|
|
rev = "7db1c63c056d79a8f9f533aa7eb82b7fdf7d456c";
|
|
|
|
hash = "sha256-GjBwu8Y/lOI8SLO4SrAWcntQIwKe/hXuh9tKbOPHQiA=";
|
2021-11-26 14:42:59 +01: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;
|
|
|
|
};
|
|
|
|
}
|