Skip to content

Commit 0111ceb

Browse files
Merge branch 'add-direnv'
2 parents 2ca3ca6 + 20dcc12 commit 0111ceb

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@
3939
*.bak
4040
android/.idea
4141
.vscode/
42+
.direnv/

BuildInstructions.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,20 @@ sudo dnf install dbus-devel
6767
sudo dnf install rpm-build
6868
```
6969

70+
## Using nix devshell
71+
72+
This is supported on Linux (x86_64) as well as macOS (x86_64 and aarch64).
73+
[Install nix](./android/docs/BuildInstructions.md#Build-using-nix-devshell) if you haven't already.
74+
75+
```bash
76+
nix develop
77+
```
78+
79+
#### direnv
80+
81+
Provided in the repository root is a [direnv](https://direnv.net/) for automatically sourcing the devshell.
82+
Allow it by executing `direnv allow .` (in `<repository>`) once.
83+
7084
### Cross-compiling for ARM64
7185

7286
By default, the app will build for the host platform. It is also possible to cross-compile the app

0 commit comments

Comments
 (0)