Init
This commit is contained in:
16
shell.nix
Normal file
16
shell.nix
Normal 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
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user