Created python environment template
This commit is contained in:
parent
e262642807
commit
77d5e6651d
1 changed files with 19 additions and 0 deletions
19
python/flake.nix
Normal file
19
python/flake.nix
Normal 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 = [ ];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue