Merge pull request #250 from ipnet-mesh/chore/nix-support

Added nix-shell support
This commit is contained in:
JingleManSweep
2026-06-14 20:37:32 +01:00
committed by GitHub
3 changed files with 16 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
if has nix && declare -F use_nix >/dev/null; then
use nix
fi
+3 -1
View File
@@ -6,6 +6,9 @@
/backup/
/content/
# Direnv
.direnv
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[codz]
@@ -148,7 +151,6 @@ celerybeat.pid
# Environments
.env
.env.backup
.envrc
.venv
env/
venv/
+10
View File
@@ -0,0 +1,10 @@
with import <nixpkgs> {};
mkShell {
NIX_LD_LIBRARY_PATH = lib.makeLibraryPath [
stdenv.cc.cc
];
NIX_LD = lib.fileContents "${stdenv.cc}/nix-support/dynamic-linker";
shellHook = ''
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
'';
}