-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
tree-sitter.buildGrammar - error: cannot coerce a set to a string #616
Comments
@skrobul your repo seems private. Maybe your |
@antoineco - thanks and apologies, I have now made the repo public so you can see whole file. Following your suggestion I have also tried: inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs";
}; as well as inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
inputs.nixpkgs.follows = "nixpkgs-unstable";
}; and inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=24.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
neovim-nightly-overlay = {
url = "github:nix-community/neovim-nightly-overlay";
}; and all of them end up with exact same traceback :( |
@skrobul the flake you linked doesn't seem to be applying the overlay. Anyway the trick for me was to apply it on top of Since you are using two different revisions of nixpkgs inside your flake, you have to be careful not to be accidentally applying it on top of |
I thought this part
was applying the overlay, but looks like I need to do some more reading as I'm genuinely lost here. |
See #533 |
Overriding inputs won't make much of a difference when using overlays. If you absolutely must use the 24.05 branch then I suggest you directly access neovim-nightly via the flake's outputs, e.g. environment.systemPackages = [inputs.neovim-nightly.packages.${system}.default]; |
Thanks, I did - my take-away from this issue was that I need to update my nixpkgs so I have ran
TIL
That did the trick, THANK YOU so much 🙌🏻 I just now need to figure out how to make it work with home-manager. For future reference if anyone gets the problem, here's what I did
|
Making it work with home-manager was easier than I thought. Once again, big thanks guys, appreciate your help! |
Hey @skrobul could you please share your solution? The link is dead and I'm facing the same issue. |
@glebdovzhenko sure thing, this is a diff from a commit linked above (sorry didn't realise it's private repo): From 524afad375c9eef45ed01ee640cae845b1ebaaec Mon Sep 17 00:00:00 2001
From: Marek Skrobacki <[email protected]>
Date: Sun, 11 Aug 2024 20:02:56 +0100
Subject: [PATCH] use neovim-nightly-overlay with home-manager
---
flake.nix | 1 +
hosts/marek/configuration.nix | 1 -
hosts/marek/home.nix | 5 +++--
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/flake.nix b/flake.nix
index a7c8fda..7e00d65 100644
--- a/flake.nix
+++ b/flake.nix
@@ -40,6 +40,7 @@
home-manager.useGlobalPkgs = true;
home-manager.useUserPackages = true;
home-manager.users.skrobul = import ./hosts/marek/home.nix;
+ home-manager.extraSpecialArgs = { inherit neovim-nightly-overlay; inherit system; };
}
];
specialArgs = { inherit inputs; };
diff --git a/hosts/marek/configuration.nix b/hosts/marek/configuration.nix
index f0b0d50..7a21f99 100644
--- a/hosts/marek/configuration.nix
+++ b/hosts/marek/configuration.nix
@@ -244,7 +244,6 @@ in
unstable.noson
wezterm
stylua
- inputs.neovim-nightly-overlay.packages.${system}.default
];
fonts.packages = with pkgs; [
diff --git a/hosts/marek/home.nix b/hosts/marek/home.nix
index 6e43bb0..302c06b 100644
--- a/hosts/marek/home.nix
+++ b/hosts/marek/home.nix
@@ -1,4 +1,4 @@
-{ config, pkgs, ... }:
+{ config, pkgs, neovim-nightly-overlay, system, ... }:
let
@@ -83,8 +83,9 @@ in
nixfmt-classic
];
programs.neovim = {
- enable = false;
+ enable = true;
extraPackages = [ pkgs.sqlite ];
+ package = neovim-nightly-overlay.packages.${system}.default;
defaultEditor = true;
viAlias = true;
vimAlias = true; full flake.nix and home-manager part: https://gist.github.com/skrobul/731e2941af7dfc8404d357c3dd54d6cd |
I was trying to switch to the neovim-nightly, but I am not able to because of this error when attempting to
nixos-rebuild
Full trace:
I searched for a potential solution and stumbled upon #591 where @antoineco suggested adding
inputs.nixpkgs.follows = "nixpkgs";
but it made absolutely no difference for me (same traceback was produced).My exact configuration at the time when this happens is available here:
Is there anything I am doing wrong here? I'd appreciate any help or suggestions
The text was updated successfully, but these errors were encountered: