about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/office/planner/default.nix
blob: 0beb4825ddd4fcdef5f19652f0b73eb005c3b77c (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
67
68
{ lib
, stdenv
, fetchFromGitLab
, desktop-file-utils
, gsettings-desktop-schemas
, glib
, gtk3
, libgda
, libxml2
, libxslt
, makeWrapper
, meson
, ninja
, pkg-config
, shared-mime-info
}:

stdenv.mkDerivation rec {
  pname = "planner";
  version = "0.14.92";

  src = fetchFromGitLab {
    domain = "gitlab.gnome.org";
    owner = "World";
    repo = "planner";
    rev = version;
    hash = "sha256-2LmNeyZURVtA52Vosyn44wT8zSaJn8tR+8sPM9atAwM=";
  };

  postPatch = ''
    patchShebangs \
      meson_post_install.sh \
      tools/strip_trailing_white_space.sh \
      tests/python/task-test.py
  '';

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

  buildInputs = [
    libgda
    libxml2
    libxslt
    glib
    gsettings-desktop-schemas
    gtk3
  ];

  postInstall = ''
    wrapProgram $out/bin/planner \
      --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share/gsettings-schemas/planner-${version}"
  '';

  meta = {
    description = "Project management tool for the GNOME desktop";
    mainProgram = "planner";
    homepage = "https://wiki.gnome.org/Apps/Planner";
    license = lib.licenses.gpl2Plus;
    maintainers = with lib.maintainers; [ amiloradovsky ];
    platforms = lib.platforms.unix;
  };
}