summaryrefslogtreecommitdiff
path: root/nix/devShell.nix
diff options
context:
space:
mode:
authorJeffrey C. Ollie <jcollie@dmacc.edu>2023-12-12 11:38:39 -0600
committerJeffrey C. Ollie <jcollie@dmacc.edu>2023-12-12 11:38:39 -0600
commitc4ed1f1b80604bee2efc4771f121c8a7242dbfa3 (patch)
tree6c1881933d1429697d380783a92de9bb386f107a /nix/devShell.nix
parent2f9750ad7fc145af73f7346ef0353d638135a33d (diff)
Use Alejandra to format Nix modules.
Diffstat (limited to 'nix/devShell.nix')
-rw-r--r--nix/devShell.nix256
1 files changed, 131 insertions, 125 deletions
diff --git a/nix/devShell.nix b/nix/devShell.nix
index 662a2c7e6..1c03c6a6c 100644
--- a/nix/devShell.nix
+++ b/nix/devShell.nix
@@ -1,139 +1,145 @@
{
- mkShell
-, lib
-, stdenv
-
-, bashInteractive
-, gdb
-#, glxinfo # unused
-, ncurses
-, nodejs
-, nodePackages
-, oniguruma
-, parallel
-, pkg-config
-, python3
-, scdoc
-, tracy
-, valgrind
-#, vulkan-loader # unused
-, vttest
-, wabt
-, wasmtime
-, wraptest
-, zig
-, zip
-, zls
-, llvmPackages_latest
-
-, bzip2
-, expat
-, fontconfig
-, freetype
-, glib
-, gtk4
-, libadwaita
-, harfbuzz
-, libpng
-, libGL
-, libX11
-, libXcursor
-, libXext
-, libXi
-, libXinerama
-, libXrandr
-, pixman
-, zlib
-}:
-let
+ mkShell,
+ lib,
+ stdenv,
+ bashInteractive,
+ gdb,
+ #, glxinfo # unused
+ ncurses,
+ nodejs,
+ nodePackages,
+ oniguruma,
+ parallel,
+ pkg-config,
+ python3,
+ scdoc,
+ tracy,
+ valgrind,
+ #, vulkan-loader # unused
+ vttest,
+ wabt,
+ wasmtime,
+ wraptest,
+ zig,
+ zip,
+ zls,
+ llvmPackages_latest,
+ bzip2,
+ expat,
+ fontconfig,
+ freetype,
+ glib,
+ gtk4,
+ libadwaita,
+ harfbuzz,
+ libpng,
+ libGL,
+ libX11,
+ libXcursor,
+ libXext,
+ libXi,
+ libXinerama,
+ libXrandr,
+ pixman,
+ zlib,
+ alejandra,
+}: let
# See package.nix. Keep in sync.
- rpathLibs = [
- libGL
- ] ++ lib.optionals stdenv.isLinux [
- bzip2
- expat
- fontconfig
- freetype
- harfbuzz
- libpng
- oniguruma
- pixman
- zlib
+ rpathLibs =
+ [
+ libGL
+ ]
+ ++ lib.optionals stdenv.isLinux [
+ bzip2
+ expat
+ fontconfig
+ freetype
+ harfbuzz
+ libpng
+ oniguruma
+ pixman
+ zlib
- libX11
- libXcursor
- libXi
- libXrandr
+ libX11
+ libXcursor
+ libXi
+ libXrandr
- libadwaita
- gtk4
- glib
- ];
-in mkShell {
- name = "ghostty";
+ libadwaita
+ gtk4
+ glib
+ ];
+in
+ mkShell {
+ name = "ghostty";
- nativeBuildInputs = [
- # For builds
- llvmPackages_latest.llvm
- ncurses
- pkg-config
- scdoc
- zig
- zip
- zls
+ nativeBuildInputs =
+ [
+ # For builds
+ llvmPackages_latest.llvm
+ ncurses
+ pkg-config
+ scdoc
+ zig
+ zip
+ zls
- # For web and wasm stuff
- nodejs
+ # For web and wasm stuff
+ nodejs
- # Linting
- nodePackages.prettier
+ # Linting
+ nodePackages.prettier
+ alejandra
- # Testing
- parallel
- python3
- tracy
- vttest
+ # Testing
+ parallel
+ python3
+ tracy
+ vttest
- # wasm
- wabt
- wasmtime
- ] ++ lib.optionals stdenv.isLinux [
- # My nix shell environment installs the non-interactive version
- # by default so we have to include this.
- bashInteractive
+ # wasm
+ wabt
+ wasmtime
+ ]
+ ++ lib.optionals stdenv.isLinux [
+ # My nix shell environment installs the non-interactive version
+ # by default so we have to include this.
+ bashInteractive
- gdb
- valgrind
- wraptest
- ];
+ gdb
+ valgrind
+ wraptest
+ ];
- buildInputs = [
- # TODO: non-linux
- ] ++ lib.optionals stdenv.isLinux [
- bzip2
- expat
- fontconfig
- freetype
- harfbuzz
- libpng
- oniguruma
- pixman
- zlib
+ buildInputs =
+ [
+ # TODO: non-linux
+ ]
+ ++ lib.optionals stdenv.isLinux [
+ bzip2
+ expat
+ fontconfig
+ freetype
+ harfbuzz
+ libpng
+ oniguruma
+ pixman
+ zlib
- libX11
- libXcursor
- libXext
- libXi
- libXinerama
- libXrandr
+ libX11
+ libXcursor
+ libXext
+ libXi
+ libXinerama
+ libXrandr
- # Only needed for GTK builds
- libadwaita
- gtk4
- glib
- ];
+ # Only needed for GTK builds
+ libadwaita
+ gtk4
+ glib
+ ];
- # This should be set onto the rpath of the ghostty binary if you want
- # it to be "portable" across the system.
- LD_LIBRARY_PATH = lib.makeLibraryPath rpathLibs;
-}
+ # This should be set onto the rpath of the ghostty binary if you want
+ # it to be "portable" across the system.
+ LD_LIBRARY_PATH = lib.makeLibraryPath rpathLibs;
+ }