summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/an/annotator/package.nix
blob: a8ab4a065ccba945df123d5ea68f29e4fcd2a23d (plain)
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
{
  lib,
  stdenv,
  fetchFromGitHub,
  pkg-config,
  meson,
  ninja,
  vala,
  wrapGAppsHook4,
  desktop-file-utils,
  shared-mime-info,
  libarchive,
  libgee,
  pantheon,
  libxml2,
  libportal-gtk4,
  libwebp,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "annotator";
  version = "2.0.3";

  src = fetchFromGitHub {
    owner = "phase1geo";
    repo = "annotator";
    tag = finalAttrs.version;
    hash = "sha256-sDrm3e2LuCyxopNoMRn3anXnrHVJzvDeqBNvEE//4rM=";
  };

  nativeBuildInputs = [
    pkg-config
    meson
    ninja
    vala
    wrapGAppsHook4
    desktop-file-utils
    shared-mime-info
  ];

  buildInputs = [
    libarchive
    libgee
    pantheon.granite7
    libportal-gtk4
    libxml2
    libwebp
  ];

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