2018-12-02 03:41:15 -08:00
|
|
|
{ stdenv, fetchFromGitHub, perl, pkgconfig, cmake, ninja, vala, gobject-introspection
|
2019-06-16 12:59:06 -07:00
|
|
|
, python3, tzdata, glib, libxml2, icu }:
|
2009-02-18 12:57:36 -08:00
|
|
|
|
2011-11-07 08:48:40 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "libical";
|
2018-08-21 05:42:46 -07:00
|
|
|
version = "3.0.4";
|
2018-06-29 03:49:33 -07:00
|
|
|
|
2019-06-03 12:55:19 -07:00
|
|
|
outputs = [ "out" "dev" ]; #"devdoc" ];
|
2015-03-26 17:29:57 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "libical";
|
|
|
|
repo = "libical";
|
|
|
|
rev = "v${version}";
|
2018-08-21 05:42:46 -07:00
|
|
|
sha256 = "1qgpbdjd6jsivw87v5w52268kqp0rv780kli8cgb3ndlv592wlbm";
|
2009-02-18 12:57:36 -08:00
|
|
|
};
|
2015-03-26 17:29:57 -07:00
|
|
|
|
2018-06-29 03:49:33 -07:00
|
|
|
nativeBuildInputs = [
|
2018-12-02 03:41:15 -08:00
|
|
|
perl pkgconfig cmake ninja vala gobject-introspection
|
2018-06-29 03:49:33 -07:00
|
|
|
(python3.withPackages (pkgs: with pkgs; [ pygobject3 ])) # running libical-glib tests
|
2019-06-03 12:55:19 -07:00
|
|
|
# Docs building fails: https://github.com/NixOS/nixpkgs/pull/61657#issuecomment-495579489
|
|
|
|
# gtk-doc docbook_xsl docbook_xml_dtd_43 # docs
|
2018-06-29 03:49:33 -07:00
|
|
|
];
|
|
|
|
buildInputs = [ glib libxml2 icu ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DGOBJECT_INTROSPECTION=True"
|
|
|
|
"-DICAL_GLIB_VAPI=True"
|
|
|
|
];
|
2012-08-08 02:10:36 -07:00
|
|
|
|
2017-09-17 18:25:11 -07:00
|
|
|
patches = [
|
|
|
|
# TODO: upstream this patch
|
2018-06-29 03:49:33 -07:00
|
|
|
# https://github.com/libical/libical/issues/350
|
2017-09-17 18:25:11 -07:00
|
|
|
./respect-env-tzdir.patch
|
|
|
|
];
|
2015-03-26 17:29:57 -07:00
|
|
|
|
2018-06-29 03:49:33 -07:00
|
|
|
# Using install check so we do not have to manually set
|
|
|
|
# LD_LIBRARY_PATH and GI_TYPELIB_PATH variables
|
|
|
|
doInstallCheck = true;
|
2018-11-24 09:39:13 -08:00
|
|
|
enableParallelChecking = false;
|
2018-06-29 03:49:33 -07:00
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
|
|
|
|
export TZDIR=${tzdata}/share/zoneinfo
|
|
|
|
ctest --output-on-failure
|
|
|
|
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
2018-04-24 20:20:18 -07:00
|
|
|
|
2015-03-26 17:29:57 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/libical/libical;
|
2016-06-20 03:53:46 -07:00
|
|
|
description = "An Open Source implementation of the iCalendar protocols";
|
2018-06-29 03:49:33 -07:00
|
|
|
license = licenses.mpl20;
|
2015-03-26 17:29:57 -07:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2009-02-18 12:57:36 -08:00
|
|
|
}
|