init uv and nix flake
This commit is contained in:
31
flake.nix
Normal file
31
flake.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user