You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,13 +139,15 @@ You can install VulnerableCode with `Nix <https://nixos.org/download.html>`__ (`
139
139
140
140
::
141
141
142
+
cd etc/nix
142
143
nix --print-build-logs flake check # build & run tests
143
144
144
145
There are several options to use the Nix version
145
146
146
147
::
147
148
148
149
# Enter an interactive environment with all dependencies setup.
150
+
cd etc/nix
149
151
nix develop
150
152
> ./manage.py ... # invoke the local checkout
151
153
> vulnerablecode-manage.py ... # invoke manage.py as installed in the nix store
@@ -159,16 +161,15 @@ There are several options to use the Nix version
159
161
**Keeping the Nix setup in sync**
160
162
161
163
The Nix installation uses `poetry2nix <https://github.com/nix-community/poetry2nix>`__ to handle Python dependencies because some dependencies are currently not available as Nix packages.
162
-
The file ``./poetry-conversion.patch`` allows to convert VulnerableCode into a `Poetry <https://python-poetry.org/>`__ project.
163
-
This is done on the fly during the Nix installation.
164
-
The patch file itself is created by ``./make-poetry-conversion-patch.sh``.
165
-
It needs to be recreated whenever ``./requirements.txt`` changes (this is not done automatically).
166
-
The ``expectedRequirementstxtMd5sum`` in ``flake.nix`` also needs to be updated in that case.
164
+
The are some ``*.generated`` files in ``etc/nix`` that are created/updated using ``etc/nix/generate-poetry-files.sh``.
165
+
These files need to be recreated whenever ``./requirements.txt`` changes.
166
+
The ``expectedRequirementstxtMd5sum`` in ``etc/nix/flake.nix`` also needs to be updated in that case.
167
+
The Nix installation uses the files to convert VulnerableCode into a `Poetry <https://python-poetry.org/>`__ project on the fly.
0 commit comments