about summary refs log tree commit diff
path: root/pkgs/applications/audio/vgmplay-libvgm
diff options
context:
space:
mode:
authorOPNA2608 <christoph.neidahl@gmail.com>2021-11-26 14:42:59 +0100
committerOPNA2608 <christoph.neidahl@gmail.com>2022-06-02 22:35:25 +0200
commitbcef993bd2854b61b94cab833fabc3c6dc324ff5 (patch)
tree7cbc5e8e9549daf1e9d297c6829761f55df572d2 /pkgs/applications/audio/vgmplay-libvgm
parent0454ad0dcf454ce4b67b45993790005584bda6d6 (diff)
vgmplay-libvgm: init at unstable-2022-03-17
Diffstat (limited to 'pkgs/applications/audio/vgmplay-libvgm')
-rw-r--r--pkgs/applications/audio/vgmplay-libvgm/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/applications/audio/vgmplay-libvgm/default.nix b/pkgs/applications/audio/vgmplay-libvgm/default.nix
new file mode 100644
index 0000000000000..9647eef681ac9
--- /dev/null
+++ b/pkgs/applications/audio/vgmplay-libvgm/default.nix
@@ -0,0 +1,43 @@
+{ stdenv
+, lib
+, fetchFromGitHub
+, unstableGitUpdater
+, cmake
+, pkg-config
+, zlib
+, libvgm
+, inih
+}:
+
+stdenv.mkDerivation rec {
+  pname = "vgmplay-libvgm";
+  version = "unstable-2022-03-17";
+
+  src = fetchFromGitHub {
+    owner = "ValleyBell";
+    repo = "vgmplay-libvgm";
+    rev = "a2c21cb134b58043a013ac2efc060144cdecf13d";
+    sha256 = "0g251laqjvvzblyflkg8xac424dbxm1v35ckfazsfchmcqiaqfw4";
+  };
+
+  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;
+  };
+}