From f7986da98e75b21600611b8785cc34d411031cad Mon Sep 17 00:00:00 2001 From: aleksana Date: Mon, 13 Mar 2023 17:02:53 +0800 Subject: [PATCH] neovim-gtk: init at 1.0.4 --- .../editors/neovim/neovim-gtk.nix | 40 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 42 insertions(+) create mode 100755 pkgs/applications/editors/neovim/neovim-gtk.nix diff --git a/pkgs/applications/editors/neovim/neovim-gtk.nix b/pkgs/applications/editors/neovim/neovim-gtk.nix new file mode 100755 index 000000000000..eebb980f85cb --- /dev/null +++ b/pkgs/applications/editors/neovim/neovim-gtk.nix @@ -0,0 +1,40 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, wrapGAppsHook4 +, pkg-config +, gdk-pixbuf +, gtk4 +, pango +, vte-gtk4 +}: + +rustPlatform.buildRustPackage rec { + pname = "neovim-gtk"; + version = "1.0.4"; + + src = fetchFromGitHub { + owner = "Lyude"; + repo = pname; + rev = "v${version}"; + hash = "sha256-inva7pYwOw3bXvFeKZ4aKSQ65iCat5HxM+NME8jN4/I="; + }; + + cargoHash = "sha256-9eZwCOP4xQtFOieqVRBAdXZrXmzdnae6PexGJ/eCyYc="; + + nativeBuildInputs = [ wrapGAppsHook4 pkg-config ]; + + buildInputs = [ gdk-pixbuf gtk4 pango vte-gtk4 ]; + + postInstall = '' + make PREFIX=$out install-resources + ''; + + meta = with lib; { + description = "Gtk ui for neovim"; + homepage = "https://github.com/Lyude/neovim-gtk"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ aleksana ]; + mainProgram = "nvim-gtk"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9ac2d1d0abdd..f76ff6124fa6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -34018,6 +34018,8 @@ with pkgs; }; neovim = wrapNeovim neovim-unwrapped { }; + neovim-gtk = callPackage ../applications/editors/neovim/neovim-gtk.nix { }; + neovim-qt-unwrapped = libsForQt5.callPackage ../applications/editors/neovim/neovim-qt.nix { }; neovim-qt = libsForQt5.callPackage ../applications/editors/neovim/qt.nix { };