diff options
| author | Zane van Iperen <zane@zanevaniperen.com> | 2021-06-10 19:13:30 +0000 |
|---|---|---|
| committer | Zane van Iperen <zane@zanevaniperen.com> | 2021-06-11 21:04:27 +1000 |
| commit | a45b498a3a57edc0abc03ef546d8ce755f5553c2 (patch) | |
| tree | 4b5c350a42bc5879c4edd921faf02000b76e741a | |
| parent | Merge pull request #126506 from primeos/chromium-backport (diff) | |
| download | nixpkgs-a45b498a3a57edc0abc03ef546d8ce755f5553c2.tar.gz | |
vgmstream: init at r1050-3738-g7cfa1f29 (#125492)
(cherry picked from commit 19ff8bd9435336715fc5f046119106fd404861c5)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
| -rw-r--r-- | pkgs/applications/audio/vgmstream/default.nix | 33 | ||||
| -rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/audio/vgmstream/default.nix b/pkgs/applications/audio/vgmstream/default.nix new file mode 100644 index 000000000000..a3518f23984b --- /dev/null +++ b/pkgs/applications/audio/vgmstream/default.nix @@ -0,0 +1,33 @@ +{ 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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2ce87c6e10cc..739af3f07c27 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -31045,6 +31045,8 @@ in vbam = callPackage ../misc/emulators/vbam { }; + vgmstream = callPackage ../applications/audio/vgmstream { }; + vice = callPackage ../misc/emulators/vice { }; ViennaRNA = callPackage ../applications/science/molecular-dynamics/viennarna { }; |
