depot/third_party/nixpkgs/pkgs/applications/audio/vgmstream/default.nix
Default email 8e65f7f0cc Project import generated by Copybara.
GitOrigin-RevId: 062a0c5437b68f950b081bbfc8a699d57a4ee026
2022-03-05 17:20:37 +01:00

42 lines
1.2 KiB
Nix

{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
, mpg123, ffmpeg, libvorbis, libao, jansson, speex
}:
let
vgmstreamVersion = "r1702-5596-00bdb165b";
in
stdenv.mkDerivation rec {
pname = "vgmstream";
version = "unstable-2022-02-21";
src = fetchFromGitHub {
owner = "vgmstream";
repo = "vgmstream";
rev = "00bdb165ba6b55420bbd5b21f54c4f7a825d15a0";
sha256 = "18g1yqlnf48hi2xn2z2wajnjljpdbfdqmcmi7y8hi1r964ypmfcr";
};
passthru.updateScript = ./update.sh;
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"
];
postConfigure = ''
echo "#define VGMSTREAM_VERSION \"${vgmstreamVersion}\"" > ../version.h
'';
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;
};
}