4
0
Fork
You've already forked generator
0
🧾 | The nix data generator for personal db & data management [maintainer=@orzklv]
  • Rust 82.4%
  • Nix 17.6%
2026年05月02日 02:55:49 +05:00
.forgejo ci: setup forgejo actions folder 2026年05月02日 02:53:32 +05:00
src chore: don't generate the packagejson file 2026年01月13日 20:34:56 +05:00
.envrc fix: missing pname and version fields 2026年01月13日 19:29:04 +05:00
.gitignore chore: remove direnv 2026年01月14日 14:45:02 +05:00
Cargo.lock chore(deps): bump quinn-proto from 0.11.13 to 0.11.14 2026年03月11日 04:22:52 +00:00
Cargo.toml chore: update home url 2026年05月02日 02:55:49 +05:00
default.nix fix: missing pname and version fields 2026年01月13日 19:29:04 +05:00
flake.lock ci: setup forgejo actions folder 2026年05月02日 02:53:32 +05:00
flake.nix chore: format nixmft 2026年05月02日 02:54:36 +05:00
LICENSE fix: repo maintenance for licenses 2025年05月22日 01:14:39 +05:00
README.md chore: logs info 2026年01月13日 19:31:57 +05:00
shell.nix fix: missing pname and version fields 2026年01月13日 19:29:04 +05:00

Xinux'es {Generator}

Generate nixpkgs sqlite databases.

Top Used Language Telegram Community

About

A utility to obtain package databse from nixos database in form of json and convert it to sqlite databases.

This repository itself is later used at xinux-org/database

Development

The project has shell.nix which has development environment preconfigured already for you. Just open your terminal and at the root of this project:

# Open in bash by default
nix develop
# If you want other shell
nix develop -c $SHELL
# After entering Nix development environment,
# inside the env, you can open your editor, so
# your editor will read all $PATH and environmental
# variables, also your terminal inside your editor
# will adopt all variables, so, you can close terminal.
# Neovim
vim .
# VSCode
code .
# Zed Editor
zed .

The development environment has whatever you may need already, but feel free to add or remove whatever inside shell.nix.

Logging

If you need more detailed logs from generator, add RUST_LOG and append whatever type of logs you would need to get, just like that:

# You can use debug, error or info instead of generator
# It just filters logs only from the project itself
RUST_LOG=generator cargo run -- --ver nixos-unstable --src nixos-unstable

Building

Well, there are two ways of building your project. You can either go with classic cargo build way, but before that, make sure to enter development environment to have cargo and all rust toolchain available in your PATH, you may do like that:

# Entering development environment
nix develop -c $SHELL
# Compile the project
cargo build --release

Or, you can build your project via nix which will do all the dirty work for you. Just, in your terminal:

# Build in nix environment
nix build
# Executable binary is available at:
./result/bin/generator

License

This project is licensed under the MIT license - see the LICENSE file for details.

Xinux'es {Generator}