From 5703ed3e3b6e8f8d959525acb866d6f3c867327e Mon Sep 17 00:00:00 2001 From: V Date: Thu, 12 Aug 2021 07:47:05 +0200 Subject: ripple: add a basic development shell and .envrc Let's start with some basic build tooling, and some extra dependencies to let us use rust-analyzer with the pinned version of Rust. Change-Id: I1dd59277d29680ba89efdc7672668b3b095ef4a7 --- ripple/.envrc | 8 ++++++++ ripple/shell.nix | 16 ++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 ripple/.envrc create mode 100644 ripple/shell.nix (limited to 'ripple') diff --git a/ripple/.envrc b/ripple/.envrc new file mode 100644 index 0000000..813aa10 --- /dev/null +++ b/ripple/.envrc @@ -0,0 +1,8 @@ +# SPDX-FileCopyrightText: V +# SPDX-License-Identifier: OSL-3.0 + +if has lorri; then + eval "$(lorri direnv)" +else + use nix +fi diff --git a/ripple/shell.nix b/ripple/shell.nix new file mode 100644 index 0000000..9282613 --- /dev/null +++ b/ripple/shell.nix @@ -0,0 +1,16 @@ +# SPDX-FileCopyrightText: V +# SPDX-License-Identifier: OSL-3.0 + +with import ./nix; + +mkShell { + packages = [ + cargo + cargo-watch + clippy + + # needed by rust-analyzer + rustc # core crate code + rustfmt # format-on-save + ]; +} -- cgit 1.4.1