about summary refs log tree commit diff
path: root/pkgs/by-name/sn/snippetexpanderx/package.nix
blob: c1d7827a4cc59ad4453a3c86298a486a1dd936b9 (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
60
61
62
63
64
65
66
{ lib
, stdenv
, fetchFromSourcehut
, pkg-config
, vala
, wrapGAppsHook3
, installShellFiles
, scdoc
, at-spi2-atk
, at-spi2-core
, dbus
, gtk3
, ibus
, libgee
, xorg
, snippetexpanderd
}:

stdenv.mkDerivation rec {
  inherit (snippetexpanderd) src version;

  pname = "snippetexpanderx";

  sourceRoot = "${src.name}/cmd/snippetexpanderx";

  nativeBuildInputs = [
    pkg-config
    vala
    wrapGAppsHook3
    installShellFiles
    scdoc
  ];

  buildInputs = [
    at-spi2-atk
    at-spi2-core
    dbus
    gtk3
    ibus
    libgee
    xorg.libX11
    snippetexpanderd
  ];

  makeFlags = [ "VERSION=${src.rev}" ];

  installPhase = ''
    runHook preInstall
    mkdir -p $out/bin
    install -m555 snippetexpanderx $out/bin/
    installManPage snippetexpanderx.1
    runHook postInstall
  '';

  # There are no tests.
  doCheck = false;

  meta = {
    description = "Your little expandable text snippet helper auto expander daemon";
    homepage = "https://snippetexpander.org";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ ianmjones ];
    platforms = lib.platforms.linux;
    mainProgram = "snippetexpanderx";
  };
}