Files
org-parser/shell.nix
Florian Schroedl 300b165da9 Init
2022-01-24 15:50:06 +01:00

17 lines
412 B
Nix

{ pkgs, nimpkgs, buildInputs }:
pkgs.mkShell {
shellHook = ''
export NIMBLE_DIR="$PWD/.nimble"
export NIMBLE_BIN_DIR="$NIMBLE_DIR/bin"
export PATH="$NIMBLE_BIN_DIR:$PATH"
# Mutable nimble install
[[ ! -f "$NIMBLE_BIN_DIR" ]] && nimble install
[[ ! -f "$NIMBLE_BIN_DIR/inim" ]] && nimble --accept install inim
'';
buildInputs = with pkgs; buildInputs ++ [
nim
nimlsp
];
}