34 lines
756 B
Nix
34 lines
756 B
Nix
|
{
|
||
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||
|
|
||
|
outputs =
|
||
|
{ self, nixpkgs }:
|
||
|
let
|
||
|
supportedSystems = [
|
||
|
"x86_64-linux"
|
||
|
"x86_64-darwin"
|
||
|
"aarch64-linux"
|
||
|
"aarch64-darwin"
|
||
|
];
|
||
|
forAllSystems = nixpkgs.lib.genAttrs supportedSystems;
|
||
|
pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system});
|
||
|
in
|
||
|
{
|
||
|
devShells = forAllSystems (
|
||
|
system:
|
||
|
let
|
||
|
python = pkgs.${system}.python3;
|
||
|
pythonEnv = python.withPackages (
|
||
|
ps: with ps; [
|
||
|
isort
|
||
|
mypy
|
||
|
]
|
||
|
);
|
||
|
in
|
||
|
{
|
||
|
default = pkgs.${system}.mkShellNoCC { packages = [ pythonEnv ]; };
|
||
|
}
|
||
|
);
|
||
|
};
|
||
|
}
|