vgm2x: 0.0.0-unstable-2023-08-27 -> 0-unstable-2024-06-18

This commit is contained in:
OPNA2608 2024-07-08 12:16:33 +02:00
parent fd2bd93f82
commit f90cdb6f37

View File

@ -2,32 +2,39 @@
, lib
, fetchFromGitHub
, unstableGitUpdater
, libfmvoice
, zlib
, libarchive
, libzip
, pkg-config
}:
stdenv.mkDerivation (finalAttrs: {
pname = "vgm2x";
version = "0.0.0-unstable-2023-08-27";
version = "0-unstable-2024-06-18";
src = fetchFromGitHub {
owner = "vampirefrog";
repo = "vgm2x";
rev = "5128055ab2b356e173b53e2afd31202a59505a39";
hash = "sha256-DwDcSUdfOsDlajYtzg5xM5P9QPOqLp8b0sEpE18kfzA=";
rev = "1c379d74d2365d4478abe25a12572f357d35d576";
fetchSubmodules = true;
hash = "sha256-lWyOyaV9dDrvGfmCE7m5M8DsxcB8bzJ35Amj3DAOVeA=";
};
postPatch = ''
rmdir libfmvoice
cp --no-preserve=all -r ${libfmvoice.src} libfmvoice
substituteInPlace Makefile \
--replace-fail 'pkg-config' "$PKG_CONFIG"
'';
strictDeps = true;
enableParallelBuilding = true;
nativeBuildInputs = [
pkg-config
];
buildInputs = [
zlib
libarchive
libzip
];
buildFlags = [
@ -37,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = ''
runHook preInstall
install -Dm755 vgm2opm $out/bin/vgm2opm
install -Dm755 vgm2x $out/bin/vgm2x
runHook postInstall
'';
@ -50,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
description = "VGM file extraction tools";
homepage = "https://github.com/vampirefrog/vgm2x";
license = licenses.gpl3Only;
mainProgram = "vgm2opm";
mainProgram = "vgm2x";
maintainers = with maintainers; [ OPNA2608 ];
platforms = platforms.all;
};