From f56a319e3ef1518274026d3350dfdca956a7ac1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Tue, 12 Jul 2016 21:58:16 +0200 Subject: [PATCH] ncurses: revert to 5.9 on Darwin (only) I don't want to investigate why it won't compile. http://hydra.nixos.org/build/37537876/nixlog/1/raw --- pkgs/development/libraries/ncurses/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix index 83864751409f..7133634f2eb6 100644 --- a/pkgs/development/libraries/ncurses/default.nix +++ b/pkgs/development/libraries/ncurses/default.nix @@ -4,17 +4,21 @@ , unicode ? true , gpm - -# Extra Options -, abiVersion ? "6" }: - +let + inherit (stdenv) isDarwin; + abiVersion = if isDarwin then "5" else "6"; + version = if isDarwin then "5.9" else "6.0"; + sha256 = if isDarwin + then "0fsn7xis81za62afan0vvm38bvgzg5wfmv1m86flqcj0nj7jjilh" + else "0q3jck7lna77z5r42f13c4xglc7azd19pxfrjrpgp2yf615w4lgm"; +in stdenv.mkDerivation rec { - name = "ncurses-6.0"; + name = "ncurses-${version}"; src = fetchurl { url = "mirror://gnu/ncurses/${name}.tar.gz"; - sha256 = "0q3jck7lna77z5r42f13c4xglc7azd19pxfrjrpgp2yf615w4lgm"; + inherit sha256; }; patches = [ ./clang.patch ];