trictrac/devenv.nix

51 lines
1,002 B
Nix
Raw Normal View History

2022-11-30 16:15:03 +01:00
{ pkgs, ... }:
{
2025-01-04 19:32:51 +01:00
packages = [
2025-02-08 08:52:01 +01:00
# dev tools
pkgs.samply # code profiler
2023-10-30 14:45:43 +01:00
# for bevy
pkgs.alsa-lib
2023-10-30 14:45:43 +01:00
pkgs.udev
2023-10-31 17:12:02 +01:00
# bevy fast compile
2025-01-04 19:32:51 +01:00
pkgs.clang
pkgs.lld
2023-10-31 17:12:02 +01:00
2023-10-30 14:45:43 +01:00
# copié de https://github.com/mmai/Hyperspeedcube/blob/develop/devenv.nix
# TODO : retirer ce qui est inutile
# pour erreur à l'exécution, selon https://github.com/emilk/egui/discussions/1587
pkgs.libxkbcommon
pkgs.libGL
# WINIT_UNIX_BACKEND=wayland
pkgs.wayland
# WINIT_UNIX_BACKEND=x11
pkgs.xorg.libXcursor
pkgs.xorg.libXrandr
pkgs.xorg.libXi
pkgs.xorg.libX11
2025-01-04 19:32:51 +01:00
pkgs.vulkan-headers
pkgs.vulkan-loader
2023-10-30 14:45:43 +01:00
# ------------ fin copie
2023-10-29 20:48:53 +01:00
];
2022-11-30 16:15:03 +01:00
# https://devenv.sh/languages/
languages.rust.enable = true;
# https://devenv.sh/scripts/
# scripts.hello.exec = "echo hello from $GREET";
# https://devenv.sh/pre-commit-hooks/
2025-01-04 19:32:51 +01:00
# pre-commit.hooks.shellcheck.enable = true;
2022-11-30 16:15:03 +01:00
# https://devenv.sh/processes/
# processes.ping.exec = "ping example.com";
}