-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
43 lines (40 loc) · 1.1 KB
/
Copy pathflake.nix
File metadata and controls
43 lines (40 loc) · 1.1 KB
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
36
37
38
39
40
41
42
43
{
description = "A basic python dev flake";
# Inputs: where to get packages from
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
};
outputs = { self, nixpkgs }:
let
# Define the systems you want to support
allSystems = [
"x86_64-linux" #64-bit Intel/AMD Linux
"aarch64-darwin" # Apple Silicon Mac
];
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in
{
devShells = forAllSystems ({ pkgs }: {
default = pkgs.mkShell {
# Packages to include in the environment
packages = with pkgs; [
(python3.withPackages (ps: with ps; [
debugpy
pandas
pytest
]))
basedpyright
ruff
markdownlint-cli
# Add more project-specific packages here
];
# Shell commands to run upon activation
shellHook = ''
echo "Entering the development environment..."
'';
};
});
};
}