1
This commit is contained in:
2022-12-16 13:19:51 +01:00
commit fc04eec19c
4 changed files with 139 additions and 0 deletions

43
flake.nix Normal file
View File

@ -0,0 +1,43 @@
{
description = "Python Various";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.devshell.url = "github:numtide/devshell";
outputs = { self, nixpkgs, flake-utils, devshell }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
overlays = [ devshell.overlay ];
};
myPython = pkgs.python310.withPackages (p: with p; [
# Basic
rich
numpy
matplotlib
]);
in {
devShell = pkgs.devshell.mkShell {
name = "Python Various";
packages = with pkgs; [
myPython
nodePackages.pyright # LSP
];
# Use $1 for positional args
commands = [
# {
# name = "";
# help = "";
# command = "";
# }
];
};
});
}