aboutsummaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/shell.nix b/shell.nix
index e82436ae1..a04e251b5 100644
--- a/shell.nix
+++ b/shell.nix
@@ -1,14 +1,16 @@
1{ avr ? true, arm ? true, teensy ? true }: 1{ avr ? true, arm ? true, teensy ? true }:
2let 2let
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 };
14in 16in