flakes/python/pip/flake.nix

26 lines
613 B
Nix
Raw Permalink Normal View History

2024-02-22 22:03:44 +01:00
{
description = "Python flake for use with pip environments.";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils}:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
in {
devShells.default = pkgs.mkShell {
packages = with pkgs; [
python39
python39Packages.pip
# You might want to add an IDE of your choice;
# jetbrains.pycharm-professional
];
};
});
}