chore: Add Nix development files (#5856)

* chore: Add Nix development files

* chore: add dir env flakes support and add it's directory to gitignore

* chore: add shards
This commit is contained in:
Fijxu
2026-08-01 18:50:15 -04:00
committed by GitHub
parent 6e13814c9e
commit 67bfb56bbe
6 changed files with 122 additions and 0 deletions

19
packages.nix Normal file
View File

@@ -0,0 +1,19 @@
{ pkgs }:
# Development packages, this makes Crystal 1.19 (latest available in nixpkgs)
# and sqlite available in a `nix-shell` or `nix develop` build environment.
#
# We dont need to add other dependencies like `libxml2` or `libyaml` here
# since they are already available by default in the Crystal Nix package
# (see the output value of CRYSTAL_LIBRARY_PATH when running `crystal env`
# Ref: https://github.com/NixOS/nixpkgs/blob/nixos-26.05/pkgs/development/compilers/crystal/default.nix#L231)
#
with pkgs;
[
# Invidious dependencies
crystal_1_19
sqlite
shards
# Utilities
nixd # Nixd LSP to format .nix files
]