fix: Add lorri to direnv and netcdf for linker
This commit is contained in:
10
.envrc
10
.envrc
@@ -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
|
||||
|
||||
17
shell.nix
17
shell.nix
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user