Skip to content

Commit

Permalink
Adding flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeftor committed Jul 7, 2024
1 parent 9e32049 commit 924463c
Show file tree
Hide file tree
Showing 4 changed files with 393 additions and 307 deletions.
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 28 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
description = "Development environment with Python 3.12 and Poetry";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-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
{
devShell = pkgs.mkShell {
buildInputs = [
pkgs.python312Full
pkgs.poetry
];

shellHook = ''
export POETRY_VIRTUALENVS_IN_PROJECT=true
'';
};
});
}
Loading

0 comments on commit 924463c

Please sign in to comment.