mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
vimPlugins.vim-clap: compile maple binary
This commit is contained in:
parent
5d4632ff5a
commit
17fb2201d4
@ -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
|
||||
'';
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user