forked from Hay1tsme/artemis
Centralized logging
Allows us to extend the logging infrastructure, e.g. by adding Loki/Discord webhooks to the mix.
This commit is contained in:
35
shell.nix
Normal file
35
shell.nix
Normal file
@ -0,0 +1,35 @@
|
||||
let
|
||||
pkgs = import <nixpkgs> { };
|
||||
pythonPackages = pkgs.python39Packages;
|
||||
in
|
||||
pkgs.mkShell {
|
||||
name = "artemis";
|
||||
venvDir = "./.venv";
|
||||
|
||||
NIX_LD = pkgs.lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
|
||||
NIX_LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
|
||||
pkgs.stdenv.cc.cc
|
||||
pkgs.zlib
|
||||
];
|
||||
|
||||
buildInputs = with pkgs; [
|
||||
pythonPackages.python
|
||||
pythonPackages.venvShellHook
|
||||
zlib
|
||||
ruff
|
||||
];
|
||||
|
||||
nativeBuildInputs = with pkgs; [
|
||||
libmysqlclient
|
||||
pkg-config
|
||||
];
|
||||
|
||||
postVenvCreation = ''
|
||||
unset SOURCE_DATE_EPOCH
|
||||
pip install -r requirements.txt
|
||||
'';
|
||||
|
||||
postShellHook = ''
|
||||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
||||
'';
|
||||
}
|
Reference in New Issue
Block a user