Updating shell.nix to a more simple mkShell.
This commit is contained in:
parent
9ad694d8b0
commit
0eddd47532
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
"nixEnvSelector.suggestion": false,
|
||||
"nixEnvSelector.nixFile": "${workspaceFolder}/shell.nix",
|
||||
"nixEnvSelector.useFlakes": false
|
||||
}
|
||||
11
shell.nix
11
shell.nix
|
|
@ -1,19 +1,20 @@
|
|||
with import <nixpkgs> {};
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in New Issue