From 77d5e6651dc7fb24cc839535d4dfd3a2e789fb5e Mon Sep 17 00:00:00 2001 From: baduhai Date: Thu, 20 Jul 2023 12:07:37 -0300 Subject: [PATCH] Created python environment template --- python/flake.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 python/flake.nix diff --git a/python/flake.nix b/python/flake.nix new file mode 100644 index 0000000..fa0b613 --- /dev/null +++ b/python/flake.nix @@ -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 = [ ]; + }; + }); +}