chore: Set up Nix
All checks were successful
Mirror to Forgejo / mirror-to-codeberg (push) Successful in 3s
All checks were successful
Mirror to Forgejo / mirror-to-codeberg (push) Successful in 3s
This commit is contained in:
parent
5a4b30f768
commit
f5757736d6
3 changed files with 21 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
@ -0,0 +1 @@
|
||||||
|
use nix
|
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,3 +1,7 @@
|
||||||
|
# ---> Nix
|
||||||
|
.direnv
|
||||||
|
result/
|
||||||
|
|
||||||
# ---> Python
|
# ---> Python
|
||||||
# Byte-compiled / optimized / DLL files
|
# Byte-compiled / optimized / DLL files
|
||||||
__pycache__/
|
__pycache__/
|
||||||
|
|
16
default.nix
Normal file
16
default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
# shell.nix
|
||||||
|
let
|
||||||
|
# We pin to a specific nixpkgs commit for reproducibility.
|
||||||
|
# Last updated: 2024-04-29. Check for new commits at https://status.nixos.org.
|
||||||
|
pkgs = import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/cf8cc1201be8bc71b7cbbbdaf349b22f4f99c7ae.tar.gz") {};
|
||||||
|
in pkgs.mkShell {
|
||||||
|
packages = [
|
||||||
|
(pkgs.python3.withPackages (python-pkgs: with python-pkgs; [
|
||||||
|
# select Python packages here
|
||||||
|
python-pkgs.python-lsp-server
|
||||||
|
python-pkgs.python-lsp-ruff
|
||||||
|
python-pkgs.pylsp-mypy
|
||||||
|
python-pkgs.pylsp-rope
|
||||||
|
]))
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue