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.nixFile": "${workspaceFolder}/shell.nix",
|
||||||
"nixEnvSelector.useFlakes": false
|
"nixEnvSelector.useFlakes": false
|
||||||
}
|
}
|
||||||
11
shell.nix
11
shell.nix
|
|
@ -1,19 +1,20 @@
|
||||||
with import <nixpkgs> {};
|
with import <nixpkgs> {};
|
||||||
stdenv.mkDerivation {
|
pkgs.mkShell {
|
||||||
name = "env";
|
buildInputs = [
|
||||||
nativeBuildInputs = [
|
# Tools
|
||||||
gnumake
|
gnumake
|
||||||
gcc
|
gcc
|
||||||
gdb
|
gdb
|
||||||
pkg-config
|
pkg-config
|
||||||
valgrind
|
valgrind
|
||||||
];
|
|
||||||
buildInputs = [
|
# Libs
|
||||||
libpng
|
libpng
|
||||||
json_c
|
json_c
|
||||||
sdl3
|
sdl3
|
||||||
ncurses
|
ncurses
|
||||||
];
|
];
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
export LD_LIBRARY_PATH=${pkgs.libpng}/lib:${pkgs.sdl3}/lib:${pkgs.ncurses}/lib:$LD_LIBRARY_PATH
|
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
|
export PKG_CONFIG_PATH=${pkgs.libpng}/lib/pkgconfig:${pkgs.sdl3}/lib/pkgconfig:${pkgs.ncurses}/lib/pkgconfig:$PKG_CONFIG_PATH
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue