diff options
author | Andrey Kuznetsov <fear@loathing.in> | 2020-07-17 21:04:15 +0000 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-08-15 16:29:34 -0700 |
commit | 17fb2201d4467fa4d6f78e2525224e7983f9fff6 (patch) | |
tree | 76e86d7d39a2bd1e465411c5cc315fa0b23fab55 /pkgs | |
parent | 5d4632ff5a4c923e4d1ad186c6b741080dce7f5b (diff) | |
download | nixpkgs-17fb2201d4467fa4d6f78e2525224e7983f9fff6.tar nixpkgs-17fb2201d4467fa4d6f78e2525224e7983f9fff6.tar.gz nixpkgs-17fb2201d4467fa4d6f78e2525224e7983f9fff6.tar.bz2 nixpkgs-17fb2201d4467fa4d6f78e2525224e7983f9fff6.tar.lz nixpkgs-17fb2201d4467fa4d6f78e2525224e7983f9fff6.tar.xz nixpkgs-17fb2201d4467fa4d6f78e2525224e7983f9fff6.tar.zst nixpkgs-17fb2201d4467fa4d6f78e2525224e7983f9fff6.zip |
vimPlugins.vim-clap: compile maple binary
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/misc/vim-plugins/overrides.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/misc/vim-plugins/overrides.nix b/pkgs/misc/vim-plugins/overrides.nix index 7f1935f574a..db1fd71d2f4 100644 --- a/pkgs/misc/vim-plugins/overrides.nix +++ b/pkgs/misc/vim-plugins/overrides.nix @@ -2,6 +2,7 @@ , python, cmake, meson, vim, ruby , which, fetchFromGitHub, fetchgit, fetchurl, fetchzip, fetchpatch , llvmPackages, rustPlatform +, pkgconfig, curl, openssl, libgit2, libiconv , xkb-switch, fzf, skim, stylish-haskell , python3, boost, icu, ncurses , ycmd, rake @@ -764,4 +765,30 @@ self: super: { ${vim}/bin/vim --cmd ":set rtp^=$PWD" -c 'ru plugin/unicode.vim' -c 'UnicodeCache' -c ':echohl Normal' -c ':q' > /dev/null ''; }); + + vim-clap = super.vim-clap.overrideAttrs(old: { + preFixup = let + maple-bin = rustPlatform.buildRustPackage { + name = "maple"; + src = old.src; + + nativeBuildInputs = [ + pkgconfig + ]; + + buildInputs = [ + openssl + ] ++ stdenv.lib.optionals stdenv.isDarwin [ + CoreServices + curl + libgit2 + libiconv + ]; + + cargoSha256 = "0qqys51slz85rnx6knjyivnmyq4rj6rrnz7w72kqcl8da8zjbx7b"; + }; + in '' + ln -s ${maple-bin}/bin/maple $target/bin/maple + ''; + }); } |