Skip to content

feat(nix) :: add a development shell - #1500

Open
81reap wants to merge 1 commit into
mainfrom
81reap/nix-dev-shell
Open

81reap wants to merge 1 commit into
mainfrom
81reap/nix-dev-shell

Conversation

@81reap

@81reap 81reap commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

Adds an optional dev shell with all of the tools needed to build SQLPage at the same versions the CI uses.

If you have nix installed or use NixOS you can now run ::
(1) nix develop :: assumes the dev shell
(2) nix fmt :: runs rustfmt, biome, and nixfmt
(3) nix run .#test-rust
(4) nix run .#test-browser
(5) nix run .#test-examples
(6) nix flake check

@81reap
81reap marked this pull request as ready for review September 25, 2026 20:13
@81reap 81reap linked an issue Sep 25, 2026 that may be closed by this pull request
@81reap

81reap commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator Author

@lovasoa I suspect #1491 got closed due to stack issues. would appreciate to hear your thoughts if i misread the situation

@81reap

81reap commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator Author

This requires #1487 to be merged first. this was ran on MacOS

$ nix flake check
error:
       … while checking flake output 'apps'
         at /nix/store/ysjjcfyfmps6n74jdkk7p00swvgw610l-source/flake.nix:205:7:
          204|
          205|       apps = forEachSystem (
             |       ^
          206|         pkgs:

       … while checking the app definition 'apps.aarch64-darwin.lint-rust'

       … while calling the 'getAttr' builtin
         at <nix/derivation-internal.nix>:50:17:
           49|     value = commonAttrs // {
           50|       outPath = builtins.getAttr outputName strict;
             |                 ^
           51|       drvPath = strict.drvPath;

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: opening file '/nix/store/ysjjcfyfmps6n74jdkk7p00swvgw610l-source/rust-toolchain.toml': No such file or directory

Adds an optional dev shell with all of the tools needed to build SQLPage at the same versions the CI uses.

If you have nix installed or use NixOS you can now run ::
(1) `nix develop` :: assumes the dev shell
(2) `nix fmt` :: runs rustfmt, biome, and nixfmt
(3) `nix run .#test-rust`
(4) `nix run .#test-browser`
(5) `nix run .#test-examples`
(6) `nix flake check`
@81reap
81reap force-pushed the 81reap/nix-dev-shell branch from fb80a53 to 1921aaf Compare September 28, 2026 19:52
@81reap

81reap commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator Author

it works. tested on MacOS to make sure its not just working on my NixOS machine

> nix flake check
warning: The check omitted these incompatible systems: aarch64-linux, x86_64-linux
Use '--all-systems' to check all.
> cargo          
zsh: command not found: cargo

> nix develop

$ cargo
Rust's package manager
...
$ nix fmt
traversed 1118 files
emitted 169 files for processing
formatted 169 files (0 changed) in 699ms

tests pass as well, but output is too long to post in this comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add flake.nix??

1 participant