about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/sn/snippetexpanderx/package.nix
blob: bb7ad94f51c9ff884e37c65ee024bb0781451c6a (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
{ lib
, stdenv
, fetchFromSourcehut
, pkg-config
, vala
, wrapGAppsHook
, 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
    wrapGAppsHook
    installShellFiles
    scdoc
  ];

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

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

  # There are no tests.
  doCheck = false;

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