biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / misc / gcal / default.nix
bloba6b98ccccf08e48fcf292bf797e0ae82a7f7d4b5
1 { lib, stdenv, fetchurl, ncurses, gettext, fetchpatch }:
3 stdenv.mkDerivation rec {
4   pname = "gcal";
5   version = "4.1";
7   src = fetchurl {
8     url = "mirror://gnu/gcal/${pname}-${version}.tar.xz";
9     sha256 = "1av11zkfirbixn05hyq4xvilin0ncddfjqzc4zd9pviyp506rdci";
10   };
12   patches = [
13     (fetchpatch {
14       url = "https://src.fedoraproject.org/rpms/gcal/raw/master/f/gcal-glibc-no-libio.patch";
15       sha256 = "0l4nw9kgzsay32rsdwvs75pbp4fhx6pfm85paynfbd20cdm2n2kv";
16     })
17   ];
19   env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration";
21   enableParallelBuilding = true;
23   buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin gettext;
25   meta = {
26     description = "Program for calculating and printing calendars";
27     longDescription = ''
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.
32     '';
33     homepage = "https://www.gnu.org/software/gcal/";
34     license = lib.licenses.gpl3Plus;
35     platforms = lib.platforms.unix;
36     maintainers = [ lib.maintainers.romildo ];
37   };