From 46dbfd45e2207a6acaea3623116cf3a6fb14d9ba Mon Sep 17 00:00:00 2001 From: Chintan Patel <216989679+Chintanpatel24@users.noreply.github.com> Date: Mon, 24 Aug 2026 21:18:25 +0530 Subject: [PATCH 1/3] Update hacktk.c --- snippets/hacktk/lib/hacktk.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 +} From 5ce56c1e1cb11c00c0ea0d8677eba5de16f1c7b3 Mon Sep 17 00:00:00 2001 From: Chintan Patel <216989679+Chintanpatel24@users.noreply.github.com> Date: Mon, 24 Aug 2026 21:19:27 +0530 Subject: [PATCH 2/3] Update CFLAGS to suppress deprecation warnings --- snippets/hacktk/lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 15f21206e4446ecaea77e74ccce8d917467ffb83 Mon Sep 17 00:00:00 2001 From: Chintan Patel <216989679+Chintanpatel24@users.noreply.github.com> Date: Mon, 24 Aug 2026 21:23:17 +0530 Subject: [PATCH 3/3] Update package.nix --- package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}