switched to uv and gitea-actions-based pipeline
All checks were successful
Build container / Build (pull_request) Successful in 43s
All checks were successful
Build container / Build (pull_request) Successful in 43s
This commit is contained in:
29
default.nix
Normal file
29
default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
pkgs.mkShell {
|
||||
name = "journal-bot-shell";
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
# python
|
||||
python313
|
||||
# setuptools as downloaded by uv seems to be broken on nixos
|
||||
python313Packages.setuptools
|
||||
uv
|
||||
];
|
||||
|
||||
|
||||
# fix library dependencies:
|
||||
env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
|
||||
# required by numpy and the likes
|
||||
pkgs.stdenv.cc.cc.lib
|
||||
pkgs.libz
|
||||
];
|
||||
|
||||
# tell UV where to put the virtualenv:
|
||||
# env.UV_PROJECT_ENVIRONMENT = ".cache/uv-venvs/thesis";
|
||||
|
||||
# install the python packages through uv:
|
||||
shellHook = "
|
||||
uv sync
|
||||
source .venv/bin/activate
|
||||
";
|
||||
}
|
Reference in New Issue
Block a user