gcal: depend on gettext on Darwin

Without gettext the gcal binary crashes on macOS:

   $ ./src/gcal
   Illegal instruction: 4
This commit is contained in:
Sebastián Mancilla 2021-07-12 18:00:18 -04:00
parent 7deb6b2aef
commit 7cbefdda67

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, ncurses, fetchpatch }:
{ lib, stdenv, fetchurl, ncurses, gettext, fetchpatch }:
stdenv.mkDerivation rec {
pname = "gcal";
@ -18,7 +18,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
buildInputs = [ ncurses ];
buildInputs = [ ncurses ] ++ lib.optional stdenv.isDarwin gettext;
meta = {
description = "Program for calculating and printing calendars";