about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/remontoire/default.nix
blob: 0aabaababf6a5502282babeb424ca3239fc9f34d (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ lib
, stdenv
, fetchFromGitHub
, wrapGAppsHook
, desktop-file-utils
, glib
, gtk3
, json-glib
, libgee
, librsvg
, meson
, ninja
, pkg-config
, python3
, vala
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "remontoire";
  version = "unstable-2022-06-19";

  src = fetchFromGitHub {
    owner = "regolith-linux";
    repo = "remontoire";
    rev = "68d562c78d6e0094ca744bd7161c308f583e93e";
    hash = "sha256-Cb6tzTGZdQA9oA04DO/xLBw5F+FRj5BM2Aa62YWGmZA=";
  };

  nativeBuildInputs = [
    glib
    meson
    ninja
    pkg-config
    python3
    vala
    wrapGAppsHook
    desktop-file-utils
  ];

  buildInputs = [
    gtk3
    json-glib
    libgee
  ];

  postPatch = ''
    chmod +x build-aux/meson/postinstall.py
    patchShebangs build-aux/meson/postinstall.py
  '';

  meta = with lib; {
    description = "A small GTK app for presenting keybinding hints";
    mainProgram = "remontoire";
    homepage = "https://github.com/regolith-linux/remontoire";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = with maintainers; [ aacebedo ];
  };
})