Updated python
This commit is contained in:
1 parent
ba6aec06a3
commit
f32764b652
4 files changed
+11
-11
No files matched your search
@@ -6,6 +6,10 @@
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
packages = config.python.packages;
|
||||
pythonPackage = pkgs.python3.withPackages packages;
|
||||
in
|
||||
{
|
||||
options.python = {
|
||||
enable = mkEnableOption "Python";
|
||||
@@ -22,14 +26,10 @@ with lib;
|
||||
};
|
||||
|
||||
config = mkIf config.python.enable {
|
||||
packages =
|
||||
with pkgs;
|
||||
let
|
||||
packages = config.python.packages;
|
||||
pythonPackage = python3.withPackages packages;
|
||||
in
|
||||
[
|
||||
pythonPackage
|
||||
];
|
||||
packages = [
|
||||
pythonPackage
|
||||
];
|
||||
|
||||
env.PYTHONINTERPRETER = "${pythonPackage}/bin/python";
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user