nixpkgs-overlay/vgmstream/default.nix

30 lines
830 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, fdk_aac, ffmpeg, jansson, libao, libvorbis, mpg123 }:
stdenv.mkDerivation rec {
pname = "vgmstream";
version = "r1626";
src = fetchFromGitHub {
owner = "vgmstream";
repo = "vgmstream";
rev = version;
sha256 = "sha256-PdG+nkr8f/kVJpJGDvfMv7cEnYFw0dikzIMEGvm/dGQ=";
};
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;
};
}