2023-04-17 10:44:54 +02:00
|
|
|
{ lib, stdenv, darwin, fetchFromGitHub, rustPlatform, openssl, pkg-config, libxkbcommon }:
|
2023-03-06 17:28:13 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "vim-fmi-cli";
|
2023-07-13 13:24:24 +02:00
|
|
|
version = "0.2.0";
|
2023-03-06 17:28:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "AndrewRadev";
|
|
|
|
repo = pname;
|
2023-07-13 13:24:24 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-RAlvDiNvDVRNtex0aD8WESc4R/mAr7FjWtgzHWa4ZSI=";
|
2023-03-06 17:28:13 +01:00
|
|
|
};
|
|
|
|
|
2023-07-23 16:08:14 +02:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = builtins.fetchurl {
|
|
|
|
url = "https://raw.githubusercontent.com/AndrewRadev/vim-fmi-cli/v${version}/Cargo.lock";
|
|
|
|
sha256 = "sha256-PfJ8N5aFffMxaWt0UrsUZjpTbR+b5UZfFxftZ72+fl4=";
|
|
|
|
};
|
|
|
|
};
|
2023-03-06 17:28:13 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
2023-04-17 10:44:54 +02:00
|
|
|
buildInputs = [ ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
SystemConfiguration
|
|
|
|
CoreServices
|
|
|
|
]);
|
2023-03-06 17:28:13 +01:00
|
|
|
|
|
|
|
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
|
|
|
|
LD_LIBRARY_PATH = lib.makeLibraryPath buildInputs;
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-03-23 07:18:50 +01:00
|
|
|
description = "The command-line tool for https://www.vim-fmi.bg";
|
2023-03-06 17:28:13 +01:00
|
|
|
homepage = "https://github.com/AndrewRadev/vim-fmi-cli";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ reo101 ];
|
|
|
|
};
|
|
|
|
}
|