depot/third_party/nixpkgs/pkgs/applications/office/planner/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

67 lines
1.2 KiB
Nix

{ 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.91";
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "planner";
rev = version;
hash = "sha256-LxctZv/CKolJ1I4Hql20E+/+p+ZoJLR1eZe34HPMqvY=";
};
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";
homepage = "https://wiki.gnome.org/Apps/Planner";
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ amiloradovsky ];
platforms = lib.platforms.unix;
};
}