nixos/neovim: Fix neovim runtime path generation

This commit is contained in:
Janne Heß 2021-08-03 10:59:48 +02:00 committed by Matthieu Coudron
parent 5e1e2914eb
commit 307b1253a7
3 changed files with 10 additions and 12 deletions

View file

@ -7,18 +7,7 @@ let
runtime' = filter (f: f.enable) (attrValues cfg.runtime);
# taken from the etc module
runtime = pkgs.stdenvNoCC.mkDerivation {
name = "runtime";
builder = ../system/etc/make-etc.sh;
preferLocalBuild = true;
allowSubstitutes = false;
sources = map (x: x.source) runtime';
targets = map (x: x.target) runtime';
};
runtime = pkgs.linkFarm "neovim-runtime" (map (x: { name = x.target; path = x.source; }) runtime');
in {
options.programs.neovim = {