From d611f9dc780211a18a01c28be75d5d3ff1106a4e Mon Sep 17 00:00:00 2001 From: Mohamed Hisham Abdelzaher Date: Sun, 9 Feb 2025 16:18:50 +0200 Subject: [PATCH] Remove .envrc and update flox manifest to include initialization steps for rustup and dioxus-cli --- .envrc | 9 --------- .flox/env/manifest.lock | 4 +++- .flox/env/manifest.toml | 7 +++++-- 3 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 .envrc diff --git a/.envrc b/.envrc deleted file mode 100644 index 9662c57..0000000 --- a/.envrc +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -# Automatically sets up your devbox environment whenever you cd into this -# directory via our direnv integration: - -# eval "$(devbox generate direnv --print-envrc)" - -# check out https://www.jetpack.io/devbox/docs/ide_configuration/direnv/ -# for more details \ No newline at end of file diff --git a/.flox/env/manifest.lock b/.flox/env/manifest.lock index ff50cc4..60fa853 100644 --- a/.flox/env/manifest.lock +++ b/.flox/env/manifest.lock @@ -7,7 +7,9 @@ "pkg-path": "rustup" } }, - "hook": {}, + "hook": { + "on-activate": "# # -> Set variables, create files and directories\n# # -> Perform initialization steps, e.g. create a python venv\n# # -> Useful environment variables:\n# # - FLOX_ENV_PROJECT=/home/user/example\n# # - FLOX_ENV=/home/user/example/.flox/run\n# # - FLOX_ENV_CACHE=/home/user/example/.flox/cache\nrustup default stable\ncargo install cargo-binstall\ncargo binstall dioxus-cli\n" + }, "profile": {}, "options": { "systems": [ diff --git a/.flox/env/manifest.toml b/.flox/env/manifest.toml index 86bdaa2..190384b 100644 --- a/.flox/env/manifest.toml +++ b/.flox/env/manifest.toml @@ -31,14 +31,17 @@ rustup.pkg-path = "rustup" ## ... run by _bash_ shell when you run 'flox activate'. ## ------------------------------------------------------------------- [hook] -# on-activate = ''' +on-activate = ''' # # -> Set variables, create files and directories # # -> Perform initialization steps, e.g. create a python venv # # -> Useful environment variables: # # - FLOX_ENV_PROJECT=/home/user/example # # - FLOX_ENV=/home/user/example/.flox/run # # - FLOX_ENV_CACHE=/home/user/example/.flox/cache -# ''' +rustup default stable +cargo install cargo-binstall +cargo binstall dioxus-cli +''' ## Profile script ---------------------------------------------------- ## ... sourced by _your shell_ when you run 'flox activate'.