From 0eddd475321b0a15ce383db6e7b3af9775d42f50 Mon Sep 17 00:00:00 2001 From: Ulysse Cura Date: Tue, 1 Sep 2026 22:04:12 +0200 Subject: [PATCH] Updating shell.nix to a more simple mkShell. --- .vscode/settings.json | 1 + shell.nix | 11 ++++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 63e3697..c6b1ff1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,4 +1,5 @@ { + "nixEnvSelector.suggestion": false, "nixEnvSelector.nixFile": "${workspaceFolder}/shell.nix", "nixEnvSelector.useFlakes": false } \ No newline at end of file diff --git a/shell.nix b/shell.nix index f10305f..853ba2c 100644 --- a/shell.nix +++ b/shell.nix @@ -1,19 +1,20 @@ with import {}; -stdenv.mkDerivation { - name = "env"; - nativeBuildInputs = [ +pkgs.mkShell { + buildInputs = [ + # Tools gnumake gcc gdb pkg-config valgrind - ]; - buildInputs = [ + + # Libs libpng json_c sdl3 ncurses ]; + shellHook = '' export LD_LIBRARY_PATH=${pkgs.libpng}/lib:${pkgs.sdl3}/lib:${pkgs.ncurses}/lib:$LD_LIBRARY_PATH export PKG_CONFIG_PATH=${pkgs.libpng}/lib/pkgconfig:${pkgs.sdl3}/lib/pkgconfig:${pkgs.ncurses}/lib/pkgconfig:$PKG_CONFIG_PATH