Merge #1758: Add minimal nix development shell option
b7ca309af740b41e543cc4c2b1b7a3395a876c13 Add minimal nix development shell option (Edouard Paris) Pull request description: ## Summary - Add minimal nix development shell option that provides only essential development dependencies - Enables faster development environment setup for contributors who prefer minimal tooling 🤖 Generated with [Claude Code](https://claude.ai/code) ACKs for top commit: edouardparis: ACK b7ca309af740b41e543cc4c2b1b7a3395a876c13 Tree-SHA512: 15bc6a80c685e5e0e29b8b85317a8f378bdacaf5568f40a3ed18901756a7752b82db3f0a350093713bc0baf51c3dfacd3fb2782fe34ab985745850c7354e13f0
This commit is contained in:
commit
4b6811bae0
45
flake.nix
45
flake.nix
@ -140,23 +140,34 @@
|
||||
${aarch64-apple-darwin}/aarch64-apple-darwin/liana-gui
|
||||
'';
|
||||
|
||||
# Common build inputs for all shells
|
||||
commonBuildInputs = with pkgs; [
|
||||
expat
|
||||
fontconfig
|
||||
freetype
|
||||
freetype.dev
|
||||
libGL
|
||||
pkg-config
|
||||
udev
|
||||
wayland
|
||||
libxkbcommon
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXrandr
|
||||
];
|
||||
|
||||
# Minimal shell without Rust toolchain
|
||||
minimalShell = pkgs.mkShell rec {
|
||||
buildInputs = commonBuildInputs;
|
||||
|
||||
LD_LIBRARY_PATH =
|
||||
builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" buildInputs;
|
||||
};
|
||||
|
||||
# Full development shell with Rust toolchain
|
||||
devShell = pkgs.mkShell rec {
|
||||
buildInputs = with pkgs; [
|
||||
expat
|
||||
fontconfig
|
||||
freetype
|
||||
freetype.dev
|
||||
libGL
|
||||
pkg-config
|
||||
udev
|
||||
wayland
|
||||
libxkbcommon
|
||||
xorg.libX11
|
||||
xorg.libXcursor
|
||||
xorg.libXi
|
||||
xorg.libXrandr
|
||||
toolchain
|
||||
];
|
||||
buildInputs = commonBuildInputs ++ [ toolchain ];
|
||||
|
||||
LD_LIBRARY_PATH =
|
||||
builtins.foldl' (a: b: "${a}:${b}/lib") "${pkgs.vulkan-loader}/lib" buildInputs;
|
||||
@ -191,7 +202,7 @@
|
||||
|
||||
|
||||
devShells = {
|
||||
dev = devShell;
|
||||
minimal = minimalShell;
|
||||
release = releaseShell;
|
||||
default = devShell;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user