nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 46 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 ncurses, 6 gettext, 7 fetchpatch, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "gcal"; 12 version = "4.1"; 13 14 src = fetchurl { 15 url = "mirror://gnu/gcal/${pname}-${version}.tar.xz"; 16 sha256 = "1av11zkfirbixn05hyq4xvilin0ncddfjqzc4zd9pviyp506rdci"; 17 }; 18 19 patches = [ 20 (fetchpatch { 21 url = "https://src.fedoraproject.org/rpms/gcal/raw/master/f/gcal-glibc-no-libio.patch"; 22 sha256 = "0l4nw9kgzsay32rsdwvs75pbp4fhx6pfm85paynfbd20cdm2n2kv"; 23 }) 24 ]; 25 26 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration"; 27 28 enableParallelBuilding = true; 29 30 buildInputs = [ ncurses ] ++ lib.optional stdenv.hostPlatform.isDarwin gettext; 31 32 meta = { 33 description = "Program for calculating and printing calendars"; 34 longDescription = '' 35 Gcal is the GNU version of the trusty old cal(1). Gcal is a 36 program for calculating and printing calendars. Gcal displays 37 hybrid and proleptic Julian and Gregorian calendar sheets. It 38 also displays holiday lists for many countries around the globe. 39 ''; 40 homepage = "https://www.gnu.org/software/gcal/"; 41 license = lib.licenses.gpl3Plus; 42 platforms = lib.platforms.unix; 43 maintainers = [ lib.maintainers.romildo ]; 44 mainProgram = "gcal"; 45 }; 46}