-
Notifications
You must be signed in to change notification settings - Fork 4
/
flake.nix
30 lines (26 loc) · 891 Bytes
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
description =
"A Nix-flake-based python development environment - this only fit with my Intel-base MacBook";
inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; };
outputs = { self, nixpkgs, ... }:
let
system = "x86_64-darwin";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.x86_64-darwin.default = pkgs.mkShell {
nativeBuildInputs = with pkgs;
[ python312 virtualenv nodejs just ] ++ (with pkgs.python312Packages; [
pip
python312Packages.python-dotenv
python312Packages.tkinter
python312Packages.black
python312Packages.pre-commit-hooks
python312Packages.isort
]);
shellHook = ''
echo "Hello, welcome to python dev shell"
'';
PYTHON_PATH = "${pkgs.python312}/bin/python3";
};
};
}