forked from M-Labs/thermostat
flake: Introduce pytec to PYTHONPATH in devShell
For easier testing of pytec client code in the shell.
This commit is contained in:
parent
9af86be674
commit
6ec05808ce
12
flake.nix
12
flake.nix
@ -63,11 +63,10 @@
|
|||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
src = "${self}/pytec";
|
src = "${self}/pytec";
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs = with pkgs.python3Packages; [
|
||||||
with pkgs.python3Packages; [
|
numpy
|
||||||
numpy
|
matplotlib
|
||||||
matplotlib
|
];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@ -95,6 +94,9 @@
|
|||||||
numpy
|
numpy
|
||||||
matplotlib
|
matplotlib
|
||||||
]);
|
]);
|
||||||
|
shellHook = ''
|
||||||
|
export PYTHONPATH=`git rev-parse --show-toplevel`/pytec:$PYTHONPATH
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
formatter.x86_64-linux = nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
|
||||||
|
Loading…
Reference in New Issue
Block a user