Skip to content

Commit

Permalink
fix(nixos): Add go lang.
Browse files Browse the repository at this point in the history
  • Loading branch information
misumisumi committed Oct 10, 2023
1 parent 2b84dbb commit e42262d
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions nixos/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,20 +66,20 @@ in
# Inspired from https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/modules/programs/nix-ld.nix
build-dependent-pkgs = with pkgs;
[
zlib
zstd
stdenv.cc.cc
curl
openssl
acl
attr
libssh
bzip2
libxml2
acl
curl
libsodium
libssh
libxml2
openssl
stdenv.cc.cc
systemd
util-linux
xz
systemd
zlib
zstd
# Packages not included in `nix-ld`'s NixOSModule
glib
libcxx
Expand Down Expand Up @@ -127,7 +127,12 @@ in
};
home.packages = with pkgs; [
ripgrep
] ++ optionals cfg.setBuildEnv [ patchelf nvim-depends-library nvim-depends-include nvim-depends-pkgconfig ];
] ++ optionals cfg.setBuildEnv [
nvim-depends-include
nvim-depends-library
nvim-depends-pkgconfig
patchelf
];
home.extraOutputsToInstall = optional cfg.setBuildEnv "nvim-depends";
home.shellAliases.nvim = optionalString cfg.setBuildEnv (concatStringsSep " " buildEnv) + " SQLITE_CLIB_PATH=${pkgs.sqlite.out}/lib/libsqlite3.so " + "nvim";

Expand All @@ -145,13 +150,14 @@ in
sqlite
]
++ optionals cfg.withBuildTools [
pkg-config
cargo
clang
gcc
cmake
gcc
gnumake
go
ninja
cargo
pkg-config
yarn
]
++ optionals cfg.withHaskell [
Expand All @@ -167,8 +173,8 @@ in
];

extraPython3Packages = ps: with ps; [
isort
docformatter
isort
pynvim
];
extraLuaPackages = ls: with ls; [
Expand Down

0 comments on commit e42262d

Please # to comment.