Skip to content

Commit

Permalink
Merge #36626: libgroove: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Mar 12, 2018
2 parents b0b1de8 + f3809c6 commit 8a74c75
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkgs/development/libraries/libgroove/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "1la9d9kig50mc74bxvhx6hzqv0nrci9aqdm4k2j4q0s1nlfgxipd";
};

patches = [ ./no-warnings-as-errors.patch ];

buildInputs = [ cmake libav SDL2 chromaprint libebur128 ];

meta = with stdenv.lib; {
description = "Streaming audio processing library";
homepage = https://github.com/andrewrk/libgroove;
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.andrewrk ];
maintainers = with maintainers; [ andrewrk ma27 ];
};
}
15 changes: 15 additions & 0 deletions pkgs/development/libraries/libgroove/no-warnings-as-errors.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1e8541..6bc9c30 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -135,8 +135,8 @@ configure_file (
"${PROJECT_BINARY_DIR}/config.h"
)

-set(LIB_CFLAGS "${C99_C_FLAGS} -pedantic -Werror -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L")
-set(EXAMPLE_CFLAGS "${C99_C_FLAGS} -pedantic -Werror -Wall -g")
+set(LIB_CFLAGS "${C99_C_FLAGS} -pedantic -Wall -Werror=strict-prototypes -Werror=old-style-definition -Werror=missing-prototypes -D_REENTRANT -D_POSIX_C_SOURCE=200809L")
+set(EXAMPLE_CFLAGS "${C99_C_FLAGS} -pedantic -Wall -g")
set(EXAMPLE_INCLUDES "${PROJECT_SOURCE_DIR}")

add_library(groove SHARED ${LIBGROOVE_SOURCES} ${LIBGROOVE_HEADERS})

0 comments on commit 8a74c75

Please sign in to comment.