chore: Set up Nix
All checks were successful
Mirror to Forgejo / mirror-to-codeberg (push) Successful in 3s

This commit is contained in:
Jiří Štefka 2025-01-16 15:56:55 +01:00
parent 5a4b30f768
commit f5757736d6
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
3 changed files with 21 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

4
.gitignore vendored
View file

@ -1,3 +1,7 @@
# ---> Nix
.direnv
result/
# ---> Python
# Byte-compiled / optimized / DLL files
__pycache__/

16
default.nix Normal file
View 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
]))
];
}