3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/audio/vgmstream/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.2 KiB
Nix
Raw Normal View History

{ 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";
};
2022-02-23 05:53:35 +00:00
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;
};
}