I’m just starting with nixos (dont even use flakes). just use it as package manager.
While installing i get the following error:
Installing go package The Go Programming Language
# The Go Programming Language
/nix/store/bp39dh48cdqp89hk5mpdi1lxdf0mjl7x-go-1.22.1/share/go/pkg/tool/linux_amd64/link: running gcc failed: exit status 1
/nix/store/j2y057vz3i19yh4zjsan1s3q256q15rd-binutils-2.41/bin/ld: cannot find crt1.o: No such file or directory
/nix/store/j2y057vz3i19yh4zjsan1s3q256q15rd-binutils-2.41/bin/ld: cannot find crti.o: No such file or directory
/nix/store/j2y057vz3i19yh4zjsan1s3q256q15rd-binutils-2.41/bin/ld: cannot find -lgcc_s: No such file or directory
collect2: error: ld returned 1 exit status
spawn: go failed with exit code 1 and signal 0.
from what I’m guessing some tools are missing. i did installed standard build tools but it did not changed much.
I believe you need to wrap R with the packages you need, then you pass that to neovim in home-manager. With the previous example, it would look like this:
# home.nix
{ config, pkgs, lib, ... }:
with pkgs;
let
R-with-packages = rWrapper.override { packages = with rPackages; [ languageserver ]; };
in
{
programs.neovim = {
enable = true;
extraPackages = with pkgs; [
# Formatters
gofumpt
goimports-reviser
golines
# LSP
gopls
# Tools
go
gcc
] ++ [
R-with-packages
];
};
}
That probably would be the best choice as home-manager allows you to configure many things like shells, desktop themes and other stuff. It’s not too hard to set up either.