nixpkgs/pkgs/desktops/xfce/applications/orage/default.nix

55 lines
1.9 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, fetchpatch, pkg-config, intltool, dbus-glib, gtk2, libical, libnotify, tzdata
, popt, libxfce4ui, xfce4-panel, withPanelPlugin ? true, wrapGAppsHook, xfce }:
2017-12-17 15:02:52 +00:00
assert withPanelPlugin -> libxfce4ui != null && xfce4-panel != null;
let
2021-01-15 13:21:58 +00:00
inherit (lib) optionals;
2017-12-17 15:02:52 +00:00
in
stdenv.mkDerivation rec {
2017-12-17 15:02:52 +00:00
pname = "orage";
version = "4.12.1";
src = fetchurl {
2021-01-15 13:21:58 +00:00
url = "https://archive.xfce.org/src/apps/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.bz2";
sha256 = "sha256-PPmqRBroPIaIhl+CIXAlzfPrqhUszkVxd3uMKqjdkGI=";
};
nativeBuildInputs = [ pkg-config intltool wrapGAppsHook ];
2018-07-14 12:21:06 +00:00
buildInputs = [ dbus-glib gtk2 libical libnotify popt ]
2017-12-17 15:02:52 +00:00
++ optionals withPanelPlugin [ libxfce4ui xfce4-panel ];
2018-07-14 12:21:06 +00:00
postPatch = ''
substituteInPlace src/parameters.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
substituteInPlace src/tz_zoneinfo_read.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
substituteInPlace tz_convert/tz_convert.c --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo"
'';
postConfigure = "rm -rf libical"; # ensure pkgs.libical is used instead of one included in the orage sources
patches = [
# Fix build with libical 3.0
(fetchpatch {
name = "fix-libical3.patch";
2020-12-27 10:40:04 +00:00
url = "https://aur.archlinux.org/cgit/aur.git/plain/libical3.patch?h=orage-4.10";
sha256 = "sha256-bsnQMGmeo4mRNGM/7UYXez2bNopXMHRFX7VFVg0IGtE=";
})
];
passthru.updateScript = xfce.updateScript {
inherit pname version;
attrPath = "xfce.${pname}";
versionLister = xfce.archiveLister "apps" pname;
};
meta = with lib; {
description = "Simple calendar application with reminders";
homepage = "https://git.xfce.org/archive/orage/";
license = licenses.gpl2Plus;
platforms = platforms.linux;
2021-11-28 18:51:44 +00:00
maintainers = with maintainers; [ ] ++ teams.xfce.members;
};
2017-12-17 15:02:52 +00:00
}