3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libical/default.nix

55 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, perl, pkgconfig, cmake, ninja, vala, gobject-introspection
2018-06-29 11:49:33 +01:00
, python3, tzdata, gtk-doc, docbook_xsl, docbook_xml_dtd_43, glib, libxml2, icu }:
stdenv.mkDerivation rec {
2015-03-27 00:29:57 +00:00
name = "libical-${version}";
version = "3.0.4";
2018-06-29 11:49:33 +01:00
outputs = [ "out" "dev" "devdoc" ];
2015-03-27 00:29:57 +00:00
src = fetchFromGitHub {
owner = "libical";
repo = "libical";
rev = "v${version}";
sha256 = "1qgpbdjd6jsivw87v5w52268kqp0rv780kli8cgb3ndlv592wlbm";
};
2015-03-27 00:29:57 +00:00
2018-06-29 11:49:33 +01:00
nativeBuildInputs = [
perl pkgconfig cmake ninja vala gobject-introspection
2018-06-29 11:49:33 +01:00
(python3.withPackages (pkgs: with pkgs; [ pygobject3 ])) # running libical-glib tests
gtk-doc docbook_xsl docbook_xml_dtd_43 # docs
];
buildInputs = [ glib libxml2 icu ];
cmakeFlags = [
"-DGOBJECT_INTROSPECTION=True"
"-DICAL_GLIB_VAPI=True"
];
2017-09-18 02:25:11 +01:00
patches = [
# TODO: upstream this patch
2018-06-29 11:49:33 +01:00
# https://github.com/libical/libical/issues/350
2017-09-18 02:25:11 +01:00
./respect-env-tzdir.patch
];
2015-03-27 00:29:57 +00:00
2018-06-29 11:49:33 +01: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 17:39:13 +00:00
enableParallelChecking = false;
2018-06-29 11:49:33 +01:00
installCheckPhase = ''
runHook preInstallCheck
export TZDIR=${tzdata}/share/zoneinfo
ctest --output-on-failure
runHook postInstallCheck
'';
2015-03-27 00:29:57 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/libical/libical;
description = "An Open Source implementation of the iCalendar protocols";
2018-06-29 11:49:33 +01:00
license = licenses.mpl20;
2015-03-27 00:29:57 +00:00
platforms = platforms.unix;
};
}