Skip to content

Commit

Permalink
ncurses: 6.0 -> 6.0-20170729
Browse files Browse the repository at this point in the history
Bump version to include a patch that fixes #19785.
  • Loading branch information
layus committed Aug 17, 2017
1 parent 9289365 commit 7290d4e
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions pkgs/development/libraries/ncurses/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,18 @@
, buildPlatform, hostPlatform
, buildPackages
}:
let
version = if abiVersion == "5" then "5.9" else "6.0";
sha256 = if abiVersion == "5"
then "0fsn7xis81za62afan0vvm38bvgzg5wfmv1m86flqcj0nj7jjilh"
else "0q3jck7lna77z5r42f13c4xglc7azd19pxfrjrpgp2yf615w4lgm";
in

stdenv.mkDerivation rec {
version = if abiVersion == "5" then "5.9" else "6.0-20170729";
name = "ncurses-${version}";

src = fetchurl {
src = fetchurl (if abiVersion == "5" then {
url = "mirror://gnu/ncurses/${name}.tar.gz";
inherit sha256;
};
sha256 = "0fsn7xis81za62afan0vvm38bvgzg5wfmv1m86flqcj0nj7jjilh";
} else {
url = "ftp://ftp.invisible-island.net/ncurses/current/${name}.tgz";
sha256 = "1cfdpl2gnj8szw28jmzrw47va0yqn16g03ywyzz3bjmaqxxmmwga";
});

patches = [ ./clang.patch ] ++ lib.optional (abiVersion == "5" && stdenv.cc.isGNU) ./gcc-5.patch;

Expand Down

0 comments on commit 7290d4e

Please sign in to comment.