nvim-plugins: don't include garbage files from nix stdenv in output

This commit is contained in:
LordMZTE 2024-05-24 12:20:04 +02:00
parent 7044d9c889
commit 47e79504f6
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -87,20 +87,20 @@ in
unpackPhase = ''
# Copy plugins sources here
mkdir plugins
${builtins.concatStringsSep "\n" (lib.mapAttrsToList
(name: src: "cp -r ${src} ${name}")
(name: src: "cp -r ${src} plugins/${name}")
config.cgnix.nvim-plugins)}
chmod -R +rw .
chmod -R +rw plugins
'';
buildPhase = ''
# Compile
${if mzte-nv-compiler != "" then "${mzte-nv-compiler} ." else ""}
${if mzte-nv-compiler != "" then "${mzte-nv-compiler} plugins" else ""}
'';
installPhase = ''
mkdir -p "$out"
mv * .* "$out"
mv plugins "$out"
'';
};
}