mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-30 01:05:37 +00:00
21 lines
553 B
Nix
21 lines
553 B
Nix
{
|
|
description = "Python pip flake";
|
|
|
|
inputs.flake-utils.url = "github:numtide/flake-utils";
|
|
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
let
|
|
pkgs = import nixpkgs { inherit system; };
|
|
pythonEnv = pkgs.python310.withPackages (pypi:
|
|
with pypi;
|
|
[
|
|
# Add requirements here
|
|
requests
|
|
]);
|
|
in {
|
|
devShells.default = pkgs.mkShell { buildInputs = [ pythonEnv ]; };
|
|
});
|
|
}
|