feat: refactor devshell as modular standalone path lol
This commit is contained in:
parent
41546aa83a
commit
9e6791569e
9 changed files with 284 additions and 79 deletions
13
devshells/zig-nightly.nix
Normal file
13
devshells/zig-nightly.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ pkgs, lib, zigPackage, ... }:
|
||||
|
||||
lib.optionalAttrs (zigPackage != null) (pkgs.mkShell {
|
||||
name = "zig-nightly";
|
||||
packages = [ zigPackage pkgs.zls pkgs.pkg-config pkgs.cmake pkgs.gdb ];
|
||||
shellHook = ''
|
||||
mkdir -p "$PWD/.cache/zig"
|
||||
export ZIG_GLOBAL_CACHE_DIR="$PWD/.cache/zig"
|
||||
echo "Zig shell using ${zigPackage.pname or "zig"} ${
|
||||
zigPackage.version or ""
|
||||
}"
|
||||
'';
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue