depot/third_party/nixpkgs/pkgs/applications/audio/vgmstream/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

33 lines
972 B
Nix

{ stdenv, lib, fetchFromGitHub, cmake, pkg-config
, mpg123, ffmpeg, libvorbis, libao, jansson
}:
stdenv.mkDerivation rec {
pname = "vgmstream";
version = "r1050-3448-g77cc431b";
src = fetchFromGitHub {
owner = "vgmstream";
repo = "vgmstream";
rev = version;
sha256 = "030q02c9li14by7vm00gn6v3m4dxxmfwiy9iyz3xsgzq1i7pqc1d";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ mpg123 ffmpeg libvorbis libao jansson ];
# There's no nice way to build the audacious plugin without a circular dependency
cmakeFlags = [ "-DBUILD_AUDACIOUS=OFF" ];
preConfigure = ''
echo "#define VERSION \"${version}\"" > cli/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;
};
}