Skip to content

Commit

Permalink
build(flake): ensure that nix flake have deterministic outputs
Browse files Browse the repository at this point in the history
TODO:
Install dependencies declared in `pyproject.toml` through nix
instead of pip so as to pin the python dev dependencies. The old way
to do this is pinning them in `requirements-dev.txt` generated by
pip-compile and reproducing with pip-sync in a virtual environment.

After doing this, build this lib as a nix python package.

Bibliography:
- https://github.com/ryan4yin/nixos-and-flakes-book/blob/e30b9a44f27dbacb7415f4449b0353e2a94f3b01/docs/zh/development/dev-environments.md?plain=1#L54-L66
- https://github.com/nix-community/pyproject.nix
  - https://github.com/nix-community/pyproject.nix/blob/5edc794d76ec64eb699f75d65fd19299ee42c99e/templates/pyproject/flake.nix#L53-L63
  • Loading branch information
minghongx committed Jan 12, 2024
1 parent 05354a3 commit 20e4850
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 20e4850

Please sign in to comment.