2021-05-28 13:01:06 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, fdk_aac, ffmpeg, jansson, libao, libvorbis, mpg123 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "vgmstream";
|
2021-08-24 22:34:54 +02:00
|
|
|
version = "r1626";
|
2021-05-28 13:01:06 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vgmstream";
|
|
|
|
repo = "vgmstream";
|
|
|
|
rev = version;
|
2021-08-24 22:34:54 +02:00
|
|
|
sha256 = "sha256-PdG+nkr8f/kVJpJGDvfMv7cEnYFw0dikzIMEGvm/dGQ=";
|
2021-05-28 13:01:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ fdk_aac ffmpeg jansson libao libvorbis mpg123 ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_AUDACIOUS=OFF"
|
|
|
|
"-DVGMSTREAM_VERSION=${version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A library for playback of various streamed audio formats used in video games";
|
|
|
|
homepage = "https://vgmstream.org/";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ sbruder ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|