diff --git a/docs/installing.md b/docs/installing.md index 73f363567b..43891ffc69 100644 --- a/docs/installing.md +++ b/docs/installing.md @@ -32,6 +32,18 @@ sdk install java 21.0.2.fx-librca Restart the terminal for the changes to take effect. +On [NixOS](https://nixos.org) or using [Nix](https://nixos.org/download) on any platform: + +``` +git clone https://github.com/haveno-dex/haveno.git +cd haveno +nix-shell +``` + +*No need to install dependencies neither java. They are managed by shell.nix file in the project.* + +*In nix-shell terminal, you can build and run haveno.* + ## Build Haveno If it's the first time you are building Haveno, run the following commands to download the repository, the needed dependencies, and build the latest release. If using a third party network, replace the repository URL with theirs: diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000000..4679796bf0 --- /dev/null +++ b/shell.nix @@ -0,0 +1,10 @@ +{pkgs ? import {}}: +pkgs.mkShell { + buildInputs = with pkgs; [ + gnumake + wget + git + javaPackages.openjfx21 + (pkgs.jdk21.override {enableJavaFX = true;}) + ]; +}