rix101/pkgs/vim-fmi-cli/default.nix

37 lines
957 B
Nix
Raw Normal View History

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-04-17 10:44:54 +02:00
version = "v0.1.16";
2023-03-06 17:28:13 +01:00
src = fetchFromGitHub {
owner = "AndrewRadev";
repo = pname;
rev = version;
2023-04-17 10:44:54 +02:00
sha256 = "sha256-pirsTb2GUxIjxTg0oJgfb7QzvgGTsBa2HBdcogsEB1M=";
2023-03-06 17:28:13 +01:00
};
2023-04-17 10:44:54 +02:00
cargoSha256 = "sha256-5Tr8tnWsQtYYNqPBSA/nT6ggvxjUvE3/AwkeJwUeMcY=";
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; {
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 ];
};
}