From de86af3a29c0018f41769763f2ba18b0d303beff Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Fri, 26 May 2023 02:17:04 +0800 Subject: [PATCH] docs: add install instructions for nixpkgs (#2401) * docs: add install instructions for nixpkgs I also included the link to the package in NixOS Search btw. * docs: remove nixos config notes per https://github.com/lapce/lapce/pull/2401#discussion_r1202429461 --- docs/installing-with-package-manager.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/installing-with-package-manager.md b/docs/installing-with-package-manager.md index f449b4e9..ec37d7ff 100644 --- a/docs/installing-with-package-manager.md +++ b/docs/installing-with-package-manager.md @@ -45,6 +45,25 @@ emerge app-editors/lapce brew install lapce ``` +### nixpkgs + +You can find the packages [here](https://search.nixos.org/packages?channel=unstable&show=lapce&from=0&size=50&sort=relevance&type=packages&query=lapce): + +```bash +# try with nix-shell +nix-shell -p lapce + +# on NixOS +nix-env -iA nixos.lapce + +# on non-NixOS installs, including macOS +nix-env -iA nixpkgs.lapce + +# only if nix.settings.experimental-features is set to both "nix-command" and "flakes" +# WARNING: THIS BREAKS nix-env, PROCEED AT YOUR OWN RISK. THIS ALSO INSTALLS FROM UNSTABLE BRANCH. +nix profile install nixpkgs#hello +``` + ### Scoop ```bash