All checks were successful
Build container / Build (pull_request) Successful in 43s
30 lines
683 B
Nix
30 lines
683 B
Nix
{ 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
|
|
";
|
|
}
|