From 47e79504f6d3cd42c380925d94a346a82617b6c5 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Fri, 24 May 2024 12:20:04 +0200 Subject: [PATCH] nvim-plugins: don't include garbage files from nix stdenv in output --- nix/cgnix/nvim-plugins.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nix/cgnix/nvim-plugins.nix b/nix/cgnix/nvim-plugins.nix index bfde519..8268930 100644 --- a/nix/cgnix/nvim-plugins.nix +++ b/nix/cgnix/nvim-plugins.nix @@ -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" ''; }; }