about summary refs log tree commit diff
path: root/pkgs/applications/editors/neovim/neovim-gtk.nix
blob: eebb980f85cb5de12a0d77880b34696c4f238ed7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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";
  };
}