feat(vim-fmi): add package

This commit is contained in:
reo101 2023-03-06 18:28:13 +02:00
parent bd2df72ebc
commit b73b1fac18
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
3 changed files with 37 additions and 0 deletions

View file

@ -70,6 +70,9 @@
rustc rustc
cargo cargo
## Vim FMI
vim-fmi
## Zig ## Zig
# zigpkgs."0.10.1" # zigpkgs."0.10.1"
zigpkgs.master zigpkgs.master

View file

@ -6,4 +6,5 @@
}: { }: {
# example = pkgs.callPackage ./example { }; # example = pkgs.callPackage ./example { };
swww = pkgs.callPackage ./swww { }; swww = pkgs.callPackage ./swww { };
vim-fmi = pkgs.callPackage ./vim-fmi { };
} }

33
pkgs/vim-fmi/default.nix Normal file
View file

@ -0,0 +1,33 @@
{ lib, fetchFromGitHub, rustPlatform, openssl, pkg-config, libxkbcommon }:
rustPlatform.buildRustPackage rec {
pname = "vim-fmi-cli";
version = "8a405efc988473a6e9f2ab3016ad1535692efbae";
src = fetchFromGitHub {
owner = "AndrewRadev";
repo = pname;
rev = version;
sha256 = "sha256-V+R+B9UR9qHeXaqeEaAD2ngVOZV07LoB36ilVhTpdog=";
};
cargoSha256 = "sha256-FRU1JieyxJ2joENueKJqGW1jbiMWLbOL03gqXL9k73o=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [ ];
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";
homepage = "https://github.com/AndrewRadev/vim-fmi-cli";
license = licenses.mit;
maintainers = with maintainers; [ reo101 ];
};
}