vgmstream: format with nixfmt-rfc-style

This commit is contained in:
Thiago Kenji Okada 2024-11-25 17:16:28 +00:00
parent 13020da8a8
commit b41a09978b

View File

@ -1,7 +1,19 @@
{ stdenv, lib, fetchFromGitHub, cmake, pkg-config, gtk3 {
, audacious-bare, mpg123, ffmpeg, libvorbis, libao, jansson, speex stdenv,
, nix-update-script lib,
, buildAudaciousPlugin ? false # only build cli by default, pkgs.audacious-plugins sets this to enable plugin support fetchFromGitHub,
cmake,
pkg-config,
gtk3,
audacious-bare,
mpg123,
ffmpeg,
libvorbis,
libao,
jansson,
speex,
nix-update-script,
buildAudaciousPlugin ? false, # only build cli by default, pkgs.audacious-plugins sets this to enable plugin support
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -17,7 +29,10 @@ stdenv.mkDerivation rec {
passthru.updateScript = nix-update-script { passthru.updateScript = nix-update-script {
attrPath = "vgmstream"; attrPath = "vgmstream";
extraArgs = [ "--version-regex" "r(.*)" ]; extraArgs = [
"--version-regex"
"r(.*)"
];
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -42,13 +57,13 @@ stdenv.mkDerivation rec {
cmakeFlags = [ cmakeFlags = [
# It always tries to download it, no option to use the system one # It always tries to download it, no option to use the system one
"-DUSE_CELT=OFF" "-DUSE_CELT=OFF"
] ++ lib.optional (! buildAudaciousPlugin) "-DBUILD_AUDACIOUS=OFF"; ] ++ lib.optional (!buildAudaciousPlugin) "-DBUILD_AUDACIOUS=OFF";
meta = with lib; { meta = with lib; {
description = "Library for playback of various streamed audio formats used in video games"; description = "Library for playback of various streamed audio formats used in video games";
homepage = "https://vgmstream.org"; homepage = "https://vgmstream.org";
maintainers = with maintainers; [ zane ]; maintainers = with maintainers; [ zane ];
license = with licenses; isc; license = with licenses; isc;
platforms = with platforms; unix; platforms = with platforms; unix;
}; };
} }