diff --git a/package.nix b/package.nix index 8a9468a..6a2cfa4 100644 --- a/package.nix +++ b/package.nix @@ -46,7 +46,7 @@ let buildInputs = [ gtk3 ]; buildPhase = '' - gcc -fPIC -Wall -Wextra -O2 -shared \ + gcc -fPIC -Wall -Wextra -O2 -Wno-deprecated-declarations -DGLIB_DISABLE_DEPRECATION_WARNINGS -shared \ -o libhacktk.so hacktk.c \ $(pkg-config --cflags --libs gtk+-3.0) -lm ''; @@ -166,4 +166,4 @@ in stdenv.mkDerivation { platforms = lib.platforms.linux; mainProgram = "caffyne-shell"; }; -} \ No newline at end of file +} diff --git a/snippets/hacktk/lib/Makefile b/snippets/hacktk/lib/Makefile index 65b4b70..b811d8e 100644 --- a/snippets/hacktk/lib/Makefile +++ b/snippets/hacktk/lib/Makefile @@ -1,5 +1,5 @@ CC := gcc -CFLAGS := -fPIC -Wall -Wextra -O2 +CFLAGS := -fPIC -Wall -Wextra -O2 -Wno-deprecated-declarations -DGLIB_DISABLE_DEPRECATION_WARNINGS LIBS := $(shell pkg-config --cflags --libs gtk+-3.0) -lm TARGET := libhacktk.so diff --git a/snippets/hacktk/lib/hacktk.c b/snippets/hacktk/lib/hacktk.c index ff6b18b..a8b1c27 100644 --- a/snippets/hacktk/lib/hacktk.c +++ b/snippets/hacktk/lib/hacktk.c @@ -1,3 +1,5 @@ +#define GLIB_DISABLE_DEPRECATION_WARNINGS 1 + #include #include @@ -241,4 +243,4 @@ gtk_revealer_finish_transition(GtkRevealer *revealer) priv->current_pos = 0.0; priv->target_pos = 0.0; gtk_widget_queue_resize(GTK_WIDGET(revealer)); -} \ No newline at end of file +}