ncurses: use github mirror

Development releases of ncurses are uploaded but often also removed
again. This is causing a lot of trouble, so let's instead use a
GitHub mirror.
This commit is contained in:
Frederik Rietdijk 2019-01-21 13:39:40 +01:00
parent b7ad5e9225
commit 43e867a226

View file

@ -13,15 +13,18 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
# Note the revision needs to be adjusted.
version = "6.1-20190112"; version = "6.1-20190112";
name = "ncurses-${version}" + lib.optionalString (abiVersion == "5") "-abi5-compat"; name = "ncurses-${version}" + lib.optionalString (abiVersion == "5") "-abi5-compat";
src = fetchurl { # We cannot use fetchFromGitHub (which calls fetchzip)
urls = [ # because we need to be able to use fetchurlBoot.
"https://invisible-mirror.net/archives/ncurses/current/ncurses-${version}.tgz" src = let
"ftp://ftp.invisible-island.net/ncurses/current/ncurses-${version}.tgz" # Note the version needs to be adjusted.
]; rev = "acb4184f8f69fddd052a3daa8c8675f4bf8ce369";
sha256 = "10s9r1lci2zym401ddw4w9cb3jmgprjnzpzr08djl3mmr0vpqnx2"; in fetchurl {
url = "https://github.com/mirror/ncurses/archive/${rev}.tar.gz";
sha256 = "1z8v63cj2y7dxf4m1api8cvk0ns9frif9c60m2sxhibs06pjy4q0";
}; };
patches = lib.optional (!stdenv.cc.isClang) ./clang.patch; patches = lib.optional (!stdenv.cc.isClang) ./clang.patch;