-
-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
⚠️ Please verify that this bug has NOT been reported before.
- I checked all existing issues and didn't find a similar issue
Description
Getting the following error when running home-manager switch. This happens when installing standalone, NixOS module, or home-manager module. I even tried updating to nixpkgs 24.05 and home-manager 24.05 to no avail:
error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "neovim-node-client" at /nix/store/f31cpaag60frgx2c09kpdhlklfs8977c-source/wrapper.nix:4'
👟 Reproduction steps
Follow the installation guide for any of the three methods.
👀 Expected behavior
NVF should be installed when programs.nvf.enable = true; is set, but instead I'm getting the error.
😓 Actual Behavior
Exception thrown. Here's the full stack trace:
error:
… while calling the 'derivationStrict' builtin
at /builtin/derivation.nix:9:12: (source not available)
… while evaluating derivation 'home-manager-generation'
whose name attribute is located at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/pkgs/build-support/trivial-builders/default.nix:68:16:
67| enableParallelBuilding = true;
68| inherit buildCommand name;
| ^
69| passAsFile = [ "buildCommand" ]
… while evaluating derivation 'activation-script'
whose name attribute is located at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'text' of derivation 'activation-script'
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/pkgs/build-support/trivial-builders/default.nix:103:16:
102| ({
103| inherit text executable checkPhase allowSubstitutes preferLocalBuild;
| ^
104| passAsFile = [ "text" ]
… while calling 'mkCmd'
at /nix/store/q1ss75nhmjiydyqw8lbzwbx7cqk8z0qq-source/modules/home-environment.nix:666:17:
665| let
666| mkCmd = res: ''
| ^
667| _iNote "Activating %s" "${res.name}"
… while calling anonymous lambda
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/lib/attrsets.nix:1205:18:
1204| mapAttrs
1205| (name: value:
| ^
1206| if isAttrs value && cond value
… from call site
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/lib/attrsets.nix:1208:18:
1207| then recurse (path ++ [ name ]) value
1208| else f (path ++ [ name ]) value);
| ^
1209| in
… while calling anonymous lambda
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/lib/modules.nix:242:72:
241| # For definitions that have an associated option
242| declaredConfig = mapAttrsRecursiveCond (v: ! isOption v) (_: v: v.value) options;
| ^
243|
… while evaluating the option `home.activation.installPackages.data':
… while calling anonymous lambda
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/lib/modules.nix:824:28:
823| # Process mkMerge and mkIf properties.
824| defs' = concatMap (m:
| ^
825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
… while evaluating definitions from `/nix/store/q1ss75nhmjiydyqw8lbzwbx7cqk8z0qq-source/modules/home-environment.nix':
… from call site
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/lib/modules.nix:825:137:
824| defs' = concatMap (m:
825| map (value: { inherit (m) file; inherit value; }) (builtins.addErrorContext "while evaluating definitions from `${m.file}':" (dischargeProperties m.value))
| ^
826| ) defs;
… while calling 'dischargeProperties'
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/lib/modules.nix:896:25:
895| */
896| dischargeProperties = def:
| ^
897| if def._type or "" == "merge" then
… while evaluating derivation 'home-manager-path'
whose name attribute is located at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/pkgs/stdenv/generic/make-derivation.nix:333:7
… while evaluating attribute 'passAsFile' of derivation 'home-manager-path'
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/pkgs/build-support/trivial-builders/default.nix:69:9:
68| inherit buildCommand name;
69| passAsFile = [ "buildCommand" ]
| ^
70| ++ (derivationArgs.passAsFile or [ ]);
… from call site
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/pkgs/stdenv/generic/make-derivation.nix:562:10:
561|
562| meta = checkMeta.commonMeta {
| ^
563| inherit validity attrs pos;
… while calling 'commonMeta'
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/pkgs/stdenv/generic/check-meta.nix:453:16:
452| # validity = checkMeta.assertValidity { inherit meta attrs; };
453| commonMeta = { validity, attrs, pos ? null, references ? [ ] }:
| ^
454| let
… from call site
at /nix/store/aj40r54d9fgdmmhy4jc50yc08zhgmw1y-source/modules/wrapper/build/config.nix:87:20:
86| # generate a wrapped Neovim package.
87| neovim-wrapped = inputs.mnw.lib.wrap pkgs {
| ^
88| neovim = vimOptions.package;
… while calling 'wrap'
at /nix/store/f31cpaag60frgx2c09kpdhlklfs8977c-source/flake.nix:9:17:
8| wrap =
9| pkgs: config:
| ^
10| let
… from call site
at /nix/store/f31cpaag60frgx2c09kpdhlklfs8977c-source/flake.nix:13:11:
12| in
13| self.lib.uncheckedWrap pkgs (
| ^
14| (builtins.removeAttrs
… while calling 'uncheckedWrap'
at /nix/store/f31cpaag60frgx2c09kpdhlklfs8977c-source/flake.nix:6:25:
5| lib = {
6| uncheckedWrap = pkgs: pkgs.callPackage ./wrapper.nix { };
| ^
7|
… from call site
at /nix/store/f31cpaag60frgx2c09kpdhlklfs8977c-source/flake.nix:6:31:
5| lib = {
6| uncheckedWrap = pkgs: pkgs.callPackage ./wrapper.nix { };
| ^
7|
… while calling 'callPackageWith'
at /nix/store/lv9bmgm6v1wc3fiz00v29gi4rk13ja6l-source/lib/customisation.nix:212:35:
211| */
212| callPackageWith = autoArgs: fn: args:
| ^
213| let
error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "neovim-node-client" at /nix/store/f31cpaag60frgx2c09kpdhlklfs8977c-source/wrapper.nix:4'
💻 Metadata
- channels(root):
"nixos-23.11"
📝 Relevant log output
flake.nix:
{
description = "My system configuration";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
home-manager = {
url = "github:nix-community/home-manager/release-24.05";
inputs.nixpkgs.follows = "nixpkgs";
};
#nixvim = {
# url = "github:xbazzi/nixvim";
#};
nvf = {
url = "github:notashelf/nvf";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = { nixpkgs, home-manager, nvf, ... } @ inputs:
let
system = "x86_64-linux";
pkgs = nixpkgs.legacyPackages.${system};
in {
nixosConfigurations = {
nixos = nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = [
./configuration.nix
];
};
};
homeConfigurations = {
"nixxer@nixos" = home-manager.lib.homeManagerConfiguration {
inherit pkgs;
modules = [
nvf.homeManagerModules.default
./home.nix
];
};
};
};
}home.nix:
{ pkgs, system, config, ... }:
{
programs.nvf = {
enable = true;
# your settings need to go into the settings attribute set
# most settings are documented in the appendix
settings = {
vim.viAlias = false;
vim.vimAlias = true;
vim.lsp = {
enable = true;
};
};
};
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working