2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
40 lines
1.1 KiB
Nix
40 lines
1.1 KiB
Nix
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
|
|
, mpg123, ffmpeg, libvorbis, libao, jansson, speex
|
|
, nix-update-script
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vgmstream";
|
|
version = "1879";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vgmstream";
|
|
repo = "vgmstream";
|
|
rev = "refs/tags/r${version}";
|
|
sha256 = "sha256-m7M9oIEym/jzuw2HAbjdF6fZsfTew1KK0g1D4SePiiE=";
|
|
};
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
attrPath = "vgmstream";
|
|
extraArgs = [ "--version-regex" "r(.*)" ];
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ mpg123 ffmpeg libvorbis libao jansson speex ];
|
|
|
|
cmakeFlags = [
|
|
# There's no nice way to build the audacious plugin without a circular dependency
|
|
"-DBUILD_AUDACIOUS=OFF"
|
|
# It always tries to download it, no option to use the system one
|
|
"-DUSE_CELT=OFF"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A library for playback of various streamed audio formats used in video games";
|
|
homepage = "https://vgmstream.org";
|
|
maintainers = with maintainers; [ zane ];
|
|
license = with licenses; isc;
|
|
platforms = with platforms; unix;
|
|
};
|
|
}
|