fix: Add lorri to direnv and netcdf for linker

This commit is contained in:
2025-07-11 16:28:42 +02:00
parent bce87e0fcf
commit 5d99becd34
2 changed files with 18 additions and 9 deletions

10
.envrc
View File

@@ -1 +1,9 @@
use nix
#!/usr/bin/env bash
# the shebang is ignored, but nice for editors
if type -P lorri &>/dev/null; then
eval "$(lorri direnv)"
else
echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
use nix
fi

View File

@@ -1,15 +1,16 @@
with import <nixpkgs> {};
mkShell {
nativeBuildInputs = [
nodejs
let
pkgs = import <nixpkgs> { };
in
pkgs.mkShell rec {
packages = [
pkgs.nodejs
];
buildInputs = [
netcdf
pkgs.netcdf
];
LOG_LEVEL = "verbose";
LD_LIBRARY_PATH = lib.makeLibraryPath [ netcdf ];
shellHook = '' '';
}
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
}