Moving to NixOS !

This commit is contained in:
Ulysse Cura 2026-07-16 22:39:23 +02:00
parent c8dd6e7cef
commit a8cfa29cbc
1 changed files with 17 additions and 0 deletions

17
shell.nix Normal file
View File

@ -0,0 +1,17 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "env";
nativeBuildInputs = [
gnumake
gcc
pkg-config
];
buildInputs = [
SDL2
SDL2_image
];
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.SDL2}/lib:${pkgs.SDL2_image}/lib:$LD_LIBRARY_PATH
export PKG_CONFIG_PATH=${pkgs.SDL2}/lib/pkgconfig:${pkgs.SDL2_image}/lib/pkgconfig:$PKG_CONFIG_PATH
'';
}