forked from Agentfrost/fp-05-firepower-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
35 lines (33 loc) · 852 Bytes
/
Copy pathflake.nix
File metadata and controls
35 lines (33 loc) · 852 Bytes
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
31
32
33
34
35
{
description = "flake for python dev";
inputs = {
nixpkgs.url = "nixpkgs/nixos-unstable";
};
outputs =
{ nixpkgs, ... }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells."${system}".default = pkgs.mkShell {
packages = with pkgs; [
python312Full
python312Packages.python-lsp-server
python312Packages.python-lsp-black
python312Packages.python-lsp-ruff
];
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
shellHook = ''
export PATH="$PWD/node_modules/.bin:$PATH";
if [ ! -d ".venv" ]; then
python -m venv ./.venv
chmod +x ./.venv/bin/activate
fi
source .venv/bin/activate
zsh
exit
'';
};
};
}