diff --git a/flake.nix b/flake.nix index ad68e4f..a36dad7 100644 --- a/flake.nix +++ b/flake.nix @@ -38,6 +38,8 @@ unxwb = callPackage ./unxwb { }; + vgmstream = callPackage ./vgmstream { }; + VisiCut = callPackage ./VisiCut { }; x264-unstable = prev.x264.overrideAttrs (callPackage ./x264-unstable { }); @@ -71,6 +73,7 @@ oha textidote unxwb + vgmstream x264-unstable; mpvScripts = lib.recurseIntoAttrs { diff --git a/vgmstream/default.nix b/vgmstream/default.nix new file mode 100644 index 0000000..d76cef2 --- /dev/null +++ b/vgmstream/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, fdk_aac, ffmpeg, jansson, libao, libvorbis, mpg123 }: + +stdenv.mkDerivation rec { + pname = "vgmstream"; + version = "r1050-3448-g77cc431b"; + + src = fetchFromGitHub { + owner = "vgmstream"; + repo = "vgmstream"; + rev = version; + sha256 = "030q02c9li14by7vm00gn6v3m4dxxmfwiy9iyz3xsgzq1i7pqc1d"; + }; + + 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; + }; +}