nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, SDL2
6, pkg-config
7}:
8
9stdenv.mkDerivation rec {
10 pname = "SDL_audiolib";
11 version = "unstable-2022-04-17";
12
13 src = fetchFromGitHub {
14 owner = "realnc";
15 repo = "SDL_audiolib";
16 rev = "908214606387ef8e49aeacf89ce848fb36f694fc";
17 sha256 = "sha256-11KkwIhG1rX7yDFSj92NJRO9L2e7XZGq2gOJ54+sN/A=";
18 };
19
20 nativeBuildInputs = [
21 cmake
22 pkg-config
23 ];
24
25 buildInputs = [
26 SDL2
27 ];
28
29 cmakeFlags = [
30 "-DUSE_RESAMP_SRC=OFF"
31 "-DUSE_RESAMP_SOXR=OFF"
32 "-DUSE_DEC_DRFLAC=OFF"
33 "-DUSE_DEC_OPENMPT=OFF"
34 "-DUSE_DEC_XMP=OFF"
35 "-DUSE_DEC_MODPLUG=OFF"
36 "-DUSE_DEC_MPG123=OFF"
37 "-DUSE_DEC_SNDFILE=OFF"
38 "-DUSE_DEC_LIBVORBIS=OFF"
39 "-DUSE_DEC_LIBOPUSFILE=OFF"
40 "-DUSE_DEC_MUSEPACK=OFF"
41 "-DUSE_DEC_FLUIDSYNTH=OFF"
42 "-DUSE_DEC_BASSMIDI=OFF"
43 "-DUSE_DEC_WILDMIDI=OFF"
44 "-DUSE_DEC_ADLMIDI=OFF"
45 ];
46
47 meta = with lib; {
48 description = "Audio decoding, resampling and mixing library for SDL";
49 homepage = "https://github.com/realnc/SDL_audiolib";
50 license = licenses.lgpl3Plus;
51 maintainers = with maintainers; [ SuperSandro2000 ];
52 };
53}