This commit is contained in:
Florian Schroedl
2022-01-20 17:00:00 +01:00
commit 300b165da9
12 changed files with 287 additions and 0 deletions

16
shell.nix Normal file
View File

@@ -0,0 +1,16 @@
{ 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
];
}