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
This commit is contained in:
Vladimír Čunát 2016-07-12 21:58:16 +02:00
parent 40785f0dac
commit f56a319e3e

View File

@ -4,17 +4,21 @@
, unicode ? true , unicode ? true
, gpm , 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 { stdenv.mkDerivation rec {
name = "ncurses-6.0"; name = "ncurses-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/ncurses/${name}.tar.gz"; url = "mirror://gnu/ncurses/${name}.tar.gz";
sha256 = "0q3jck7lna77z5r42f13c4xglc7azd19pxfrjrpgp2yf615w4lgm"; inherit sha256;
}; };
patches = [ ./clang.patch ]; patches = [ ./clang.patch ];