We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526f786 commit fc5feb8Copy full SHA for fc5feb8
flake.nix
@@ -30,6 +30,7 @@
30
# define the packages provided by this flake
31
packages = let
32
inherit (fenix.packages.${system}.minimal) toolchain;
33
+ inherit (pkgs.stdenv) hostPlatform;
34
35
rustPlatform = pkgs.makeRustPlatform {
36
cargo = toolchain;
@@ -52,13 +53,18 @@
52
53
};
54
55
56
+
57
+ libExt =
58
+ if hostPlatform.isDarwin then "dylib"
59
+ else if hostPlatform.isWindows then "dll"
60
+ else "so";
61
in {
62
blink-cmp = pkgs.vimUtils.buildVimPlugin {
63
pname = "blink-cmp";
64
inherit src version;
65
preInstall = ''
66
mkdir -p target/release
- ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.so target/release/libblink_cmp_fuzzy.so
67
+ ln -s ${blink-fuzzy-lib}/lib/libblink_cmp_fuzzy.${libExt} target/release/libblink_cmp_fuzzy.${libExt}
68
'';
69
70
meta = {
0 commit comments