-
-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix nextls command not found when installing with Nix #283
Conversation
i have been formatting it with nixpkgs-fmt. unless serokell/nixfmt is more popular, please format it with nixpkgs-fmt i am getting a symlink permissions error when trying thid locally. i think my nix-darwin or nix might be busted tho, will be able to look more into it next week (i'm on vacation right now) |
Ok, I use nixfmt because the Emacs nix-mode uses it by default. I’ll remove the format commit.
I’m using nix-darwin too. Have a nice vacation! |
052f68f
to
f3e466f
Compare
f3e466f
to
59b2bdc
Compare
This is not entirely on topic, I'm a bit of a nix novice. I was wondering how I'd use this flake.nix file outside of |
@tcoopman The method is to use the flake outputs in your Show the flake outputs: nix flake show github:elixir-tools/next-ls Use it in your {
description = "A basic flake with a shell";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.next-ls.url = "github:elixir-tools/next-ls";
# or local
# inputs.next-ls.url = "path:/local-path-to-next-ls";
outputs = { self, nixpkgs, flake-utils, next-ls }:
flake-utils.lib.eachDefaultSystem (system: let
pkgs = nixpkgs.legacyPackages.${system};
nextls = next-ls.packages.${system}.default;
in {
devShells.default = pkgs.mkShell {
packages = [ pkgs.bashInteractive nextls ];
};
});
} |
59b2bdc
to
3b30e29
Compare
I confirmed this works. I had to completely uninstall nix from my mac first, then reinstall 😅. It was goofed up somehow. |
@mhanberg Cool! It feels good because the re-installation is reliable. I’ve re-installed Nix serveral times, so the uninstallation link appears in the References of my nix-config: https://git.sr.ht/~goofansu/nix-config#references |
Oh, good catch. thanks for that! |
Solve #278.
burrito_out/next_ls_<system>_<arch>
toburrito_out/nextls
, which is the command to install.bin
directory containing thenext_ls
app that isn't expected to be installed, then renameburrito_out
directory tobin
.Try
gh repo clone elixir-tools/next-ls gh co 283 nix profile install . nextls --version
It works in Doom Emacs to format a buffer after saving it.