Added flake

This commit is contained in:
Jurn Wubben 2025-05-19 10:09:32 +02:00
parent c750593f94
commit bd63ae9a4d
4 changed files with 50 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.direnv

26
flake.lock generated Normal file
View file

@ -0,0 +1,26 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1747032016,
"narHash": "sha256-xp5diwyZaYzARP7MYB9upoKemvbKIsj905aviRFK8DQ=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f79b568519a89d35ca8c6e10b2fb5dc389826a99",
"type": "github"
},
"original": {
"owner": "NixOS",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

22
flake.nix Normal file
View file

@ -0,0 +1,22 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
outputs = {
self,
nixpkgs,
...
}: let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
devShells.x86_64-linux.default =
pkgs.mkShell
{
nativeBuildInputs = [
(pkgs.python3.withPackages
(x: [x.flask x.flask-wtf x.wtforms x.flask-sqlalchemy]))
pkgs.entr
];
};
};
}