init uv and nix flake

This commit is contained in:
CheesePlated
2026-05-08 13:56:23 +02:00
parent 54484bce64
commit a25bd700c9
6 changed files with 99 additions and 0 deletions

31
flake.nix Normal file
View File

@@ -0,0 +1,31 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = {nixpkgs, ...}: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
in {
devShells.${system}.default = pkgs.mkShell {
name = "maturaarbeit";
packages = with pkgs; [
uv
python314
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
libX11
];
shellHook = ''
uv sync
. .venv/bin/activate
'';
};
};
}