1 { lib, stdenv, fetchurl, ncurses, gettext, fetchpatch }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/gcal/${pname}-${version}.tar.xz";
9 sha256 = "1av11zkfirbixn05hyq4xvilin0ncddfjqzc4zd9pviyp506rdci";
14 url = "https://src.fedoraproject.org/rpms/gcal/raw/master/f/gcal-glibc-no-libio.patch";
15 sha256 = "0l4nw9kgzsay32rsdwvs75pbp4fhx6pfm85paynfbd20cdm2n2kv";
19 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration";
21 enableParallelBuilding = true;
23 buildInputs = [ ncurses ] ++ lib.optional stdenv.hostPlatform.isDarwin gettext;
26 description = "Program for calculating and printing calendars";
28 Gcal is the GNU version of the trusty old cal(1). Gcal is a
29 program for calculating and printing calendars. Gcal displays
30 hybrid and proleptic Julian and Gregorian calendar sheets. It
31 also displays holiday lists for many countries around the globe.
33 homepage = "https://www.gnu.org/software/gcal/";
34 license = lib.licenses.gpl3Plus;
35 platforms = lib.platforms.unix;
36 maintainers = [ lib.maintainers.romildo ];