mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #9506 from benley/vim2nix
vimUtils.pluginnames2nix: fixes for non-nixos systems
This commit is contained in:
commit
984ca122f4
1 changed files with 5 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
{stdenv, vim, vimPlugins, vim_configurable, buildEnv, writeText, writeScriptBin}:
|
||||
{stdenv, vim, vimPlugins, vim_configurable, buildEnv, writeText, writeScriptBin
|
||||
, nix-prefetch-scripts }:
|
||||
|
||||
/*
|
||||
|
||||
|
@ -309,8 +310,8 @@ rec {
|
|||
echom repeat("=", 80)
|
||||
endif
|
||||
let opts = {}
|
||||
let opts.nix_prefetch_git = "${../../../pkgs/build-support/fetchgit/nix-prefetch-git}"
|
||||
let opts.nix_prefetch_hg = "${../../../pkgs/build-support/fetchhg/nix-prefetch-hg}"
|
||||
let opts.nix_prefetch_git = "${nix-prefetch-scripts}/bin/nix-prefetch-git"
|
||||
let opts.nix_prefetch_hg = "${nix-prefetch-scripts}/bin/nix-prefetch-hg"
|
||||
let opts.cache_file = g:vim_addon_manager.plugin_root_dir.'/cache'
|
||||
let opts.plugin_dictionaries = []
|
||||
${lib.concatMapStrings (file: "let opts.plugin_dictionaries += map(readfile(\"${file}\"), 'eval(v:val)')\n") namefiles }
|
||||
|
|
Loading…
Reference in a new issue