diff options
author | Sergey Vlasov <sigprof@gmail.com> | 2021-06-20 16:30:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-20 14:30:16 +0100 |
commit | 7ab490254364e3c4d91748bbd17e8475ad090979 (patch) | |
tree | 1a78c2e03aee01108d6b498b2d10429e519eab48 /shell.nix | |
parent | 50a312b635122bd15d89610e42eb9102a31e5d5d (diff) | |
download | qmk_firmware-7ab490254364e3c4d91748bbd17e8475ad090979.tar.gz qmk_firmware-7ab490254364e3c4d91748bbd17e8475ad090979.zip |
Update Python dependencies for Nix (#12855)
Co-authored-by: Steve Purcell <steve@sanityinc.com>
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,14 +1,16 @@ | |||
1 | { avr ? true, arm ? true, teensy ? true }: | 1 | { avr ? true, arm ? true, teensy ? true }: |
2 | let | 2 | let |
3 | # We specify sources via Niv: use "niv update nixpkgs" to update nixpkgs, for example. | 3 | # We specify sources via Niv: use "niv update nixpkgs" to update nixpkgs, for example. |
4 | sources = import ./nix/sources.nix {}; | 4 | sources = import ./nix/sources.nix { }; |
5 | pkgs = import sources.nixpkgs {}; | 5 | pkgs = import sources.nixpkgs { }; |
6 | |||
7 | poetry2nix = pkgs.callPackage (import sources.poetry2nix) { }; | ||
6 | 8 | ||
7 | # Builds the python env based on nix/pyproject.toml and | 9 | # Builds the python env based on nix/pyproject.toml and |
8 | # nix/poetry.lock Use the "poetry update --lock", "poetry add | 10 | # nix/poetry.lock Use the "poetry update --lock", "poetry add |
9 | # --lock" etc. in the nix folder to adjust the contents of those | 11 | # --lock" etc. in the nix folder to adjust the contents of those |
10 | # files if the requirements*.txt files change | 12 | # files if the requirements*.txt files change |
11 | pythonEnv = pkgs.poetry2nix.mkPoetryEnv { | 13 | pythonEnv = poetry2nix.mkPoetryEnv { |
12 | projectDir = ./nix; | 14 | projectDir = ./nix; |
13 | }; | 15 | }; |
14 | in | 16 | in |