Commit f90cdb6f authored by OPNA2608's avatar OPNA2608
Browse files

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

parent fd2bd93f
Loading
Loading
Loading
Loading
+17 −10
Original line number Diff line number Diff line
@@ -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;
  };