diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-01-21 13:39:40 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-01-23 13:57:48 +0100 |
commit | 43e867a226a8dc5c9c968aeae1c526697c71cd32 (patch) | |
tree | 3c7b0a57003c426f0acf326adc2bebef88fa6199 /pkgs/development/libraries/ncurses | |
parent | b7ad5e92259445d9f4efed381a462efbfc840055 (diff) | |
download | nixpkgs-43e867a226a8dc5c9c968aeae1c526697c71cd32.tar nixpkgs-43e867a226a8dc5c9c968aeae1c526697c71cd32.tar.gz nixpkgs-43e867a226a8dc5c9c968aeae1c526697c71cd32.tar.bz2 nixpkgs-43e867a226a8dc5c9c968aeae1c526697c71cd32.tar.lz nixpkgs-43e867a226a8dc5c9c968aeae1c526697c71cd32.tar.xz nixpkgs-43e867a226a8dc5c9c968aeae1c526697c71cd32.tar.zst nixpkgs-43e867a226a8dc5c9c968aeae1c526697c71cd32.zip |
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.
Diffstat (limited to 'pkgs/development/libraries/ncurses')
-rw-r--r-- | pkgs/development/libraries/ncurses/default.nix | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/development/libraries/ncurses/default.nix b/pkgs/development/libraries/ncurses/default.nix index 51328a12ac8..67b8cb9efdb 100644 --- a/pkgs/development/libraries/ncurses/default.nix +++ b/pkgs/development/libraries/ncurses/default.nix @@ -13,15 +13,18 @@ }: stdenv.mkDerivation rec { + # Note the revision needs to be adjusted. version = "6.1-20190112"; name = "ncurses-${version}" + lib.optionalString (abiVersion == "5") "-abi5-compat"; - src = fetchurl { - urls = [ - "https://invisible-mirror.net/archives/ncurses/current/ncurses-${version}.tgz" - "ftp://ftp.invisible-island.net/ncurses/current/ncurses-${version}.tgz" - ]; - sha256 = "10s9r1lci2zym401ddw4w9cb3jmgprjnzpzr08djl3mmr0vpqnx2"; + # We cannot use fetchFromGitHub (which calls fetchzip) + # because we need to be able to use fetchurlBoot. + src = let + # Note the version needs to be adjusted. + rev = "acb4184f8f69fddd052a3daa8c8675f4bf8ce369"; + in fetchurl { + url = "https://github.com/mirror/ncurses/archive/${rev}.tar.gz"; + sha256 = "1z8v63cj2y7dxf4m1api8cvk0ns9frif9c60m2sxhibs06pjy4q0"; }; patches = lib.optional (!stdenv.cc.isClang) ./clang.patch; |