Created python environment template

This commit is contained in:
baduhai 2023-07-20 12:07:37 -03:00
parent e262642807
commit 77d5e6651d

19
python/flake.nix Normal file
View file

@ -0,0 +1,19 @@
{
description = "Flake template for a python project";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in with pkgs; {
devShells.default = mkShell {
buildInputs = [ python310 ];
packages = [ ];
};
});
}