From 7b7e7108decb608e6a58856c20a56d55a3e432ee Mon Sep 17 00:00:00 2001 From: PAKI KNOWLEDGE <2772962906@qq.com> Date: Tue, 25 Aug 2026 20:51:37 +0800 Subject: [PATCH] added nix-shell --- shell.nix | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..662f874 --- /dev/null +++ b/shell.nix @@ -0,0 +1,60 @@ +{ pkgs ? import { } }: + +let + libPaths = builtins.map (pkg: "${pkg}/lib") (with pkgs; [ + webkitgtk_4_1 + gtk3 + glib + cairo + pango + gdk-pixbuf + atk + libsoup_3 + libx11 + libxcomposite + libxdamage + libxext + libxfixes + libxi + libxrandr + libxrender + libxtst + libxcb + libGL + libxkbcommon + libepoxy + freetype + fontconfig + ]); +in +pkgs.mkShell { + buildInputs = with pkgs; [ + webkitgtk_4_1 + gtk3 + glib + cairo + pango + gdk-pixbuf + atk + libsoup_3 + libx11 + libxcomposite + libxdamage + libxext + libxfixes + libxi + libxrandr + libxrender + libxtst + libxcb + libGL + libxkbcommon + libepoxy + freetype + fontconfig + ]; + + shellHook = '' + export LD_LIBRARY_PATH="${builtins.concatStringsSep ":" libPaths}:$LD_LIBRARY_PATH" + ''; +}