Commit d559964
authored
refactor(nix): split flake.nix using flake-parts (#1681)
* refactor(nix): split flake.nix using flake-parts
This commit introduces a modular Nix flake structure using flake-parts.
The monolithic flake.nix has been split into specialized modules.
Here is an overview of the new directory structure:
```
├── flake.nix # Root flake file only referencing modules
nix/
├── apps.nix # Application definitions
├── checks.nix # Build checks and tests
├── config.nix # Global configuration
├── devShells.nix # Development environment shell
├── fmt.nix # Code formatting configuration
├── hooks.nix # Git hooks and pre-commit
├── ext/ # PostgreSQL extensions
├── overlays/ # Nixpkgs overlays
├── packages/ # Custom packages
└── postgresql/ # PostgreSQL packages
```
* refactor: move overlays to dedicated directory
The commit moves the overlay configuration from packages/default.nix to a new dedicated overlays/default.nix file for better organization, while keeping the same functionality. This change improves code structure and maintainability.
* refactor(nix): centralize postgresql configuration in config.nix
Moves postgresql version definitions and default settings into a centralized config.nix module.
* refactor(nix): generate postgresql packages into single module
Moves postgresql source and debug package generation into the postgresql module. This reduces duplication by generating packages dynamically based on supported versions.
* refactor: reorganize groonga package and cleanup dependencies
The changes reorganize the groonga-related packages by moving files to a dedicated directory and cleaning up dependencies. It also removes some unused variables and improves package structure.
* feat: configure formatter for nix files
* chore: format nix files
* feat: add git-hooks.nix for pre-commit formatting checks
Adds pre-commit hooks using git-hooks.nix to run treefmt formatting checks before commits.
* docs: generate documentation site with MkDocs
Add MkDocs configuration and assets for generating a documentation site.
This is more readable and provides a structured way to present information about the project.
We don't store the generated site in the repository, but instead use MkDocs to build it on demand.
In a development shell, one can run `mkdocs serve` to quickly preview the site locally.
* fix: add missing recommended direnv
We document the recommended `.envrc` file in the docs, but we forgot to
add it to the repository.
* doc: add documentation about formatting and directory structure
* doc: add helper to generate documentation using mkdocs
mkdocs renders the documentation present in the `nix/docs/` directory in HTML
format.1 parent dcbaa6d commit d559964
File tree
96 files changed
+3775
-2304
lines changed- nix
- cargo-pgrx
- docs
- assets/images
- site
- ext
- mecab-naist-jdic
- sfcgal
- wrappers
- overlays
- packages
- groonga
- postgresql
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
96 files changed
+3775
-2304
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments