about summary refs log tree commit diff
path: root/pkgs/by-name/an/annotator/package.nix
blob: 3d2498e3350094a2c89025d5e5a88f1420ea01dd (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
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, meson
, ninja
, vala
, wrapGAppsHook
, desktop-file-utils
, libgee
, pantheon
, libxml2
, libhandy
}:

stdenv.mkDerivation rec {
  pname = "annotator";
  version = "1.2.1";

  src = fetchFromGitHub {
    owner = "phase1geo";
    repo = "annotator";
    rev = version;
    hash = "sha256-VHvznkGvrE8o9qq+ijrIStSavq46dS8BqclWEWZ8mG8=";
  };

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

  buildInputs = [
    libgee
    pantheon.granite
    libxml2
    libhandy
  ];

  meta = with lib; {
    description = "Image annotation for Elementary OS";
    homepage = "https://github.com/phase1geo/Annotator";
    license = licenses.gpl3Plus;
    mainProgram = "com.github.phase1geo.annotator";
    maintainers = with maintainers; [ aleksana ];
    platforms = platforms.linux;
  };
}