diff --git a/machines/nixos/x86_64-linux/homix/home/reo101.nix b/machines/nixos/x86_64-linux/homix/home/reo101.nix index c59d813..bc3122d 100644 --- a/machines/nixos/x86_64-linux/homix/home/reo101.nix +++ b/machines/nixos/x86_64-linux/homix/home/reo101.nix @@ -70,6 +70,9 @@ rustc cargo + ## Vim FMI + vim-fmi + ## Zig # zigpkgs."0.10.1" zigpkgs.master diff --git a/pkgs/default.nix b/pkgs/default.nix index 8df8d5f..f9d443a 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -6,4 +6,5 @@ }: { # example = pkgs.callPackage ./example { }; swww = pkgs.callPackage ./swww { }; + vim-fmi = pkgs.callPackage ./vim-fmi { }; } diff --git a/pkgs/vim-fmi/default.nix b/pkgs/vim-fmi/default.nix new file mode 100644 index 0000000..ed262f1 --- /dev/null +++ b/pkgs/vim-fmi/default.nix @@ -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 ]; + }; +}