Skip to content

Commit 4154d56

Browse files
committed
Adding flakes
1 parent 9e32049 commit 4154d56

File tree

4 files changed

+393
-307
lines changed

4 files changed

+393
-307
lines changed

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
description = "Development environment with Python 3.12 and Poetry";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = { self, nixpkgs, flake-utils }:
10+
flake-utils.lib.eachDefaultSystem (system:
11+
let
12+
pkgs = import nixpkgs {
13+
inherit system;
14+
};
15+
in
16+
{
17+
devShell = pkgs.mkShell {
18+
buildInputs = [
19+
pkgs.python312Full
20+
pkgs.poetry
21+
];
22+
23+
shellHook = ''
24+
export POETRY_VIRTUALENVS_IN_PROJECT=true
25+
'';
26+
};
27+
});
28+
}

0 commit comments

Comments
 (0)