uclibc: Provide a more stable location for source.

At the upstream URL at http://git.uclibc.org/uClibc/snapshot/, older
versions are dropped at a regular basis. Unfortunately the tarball
"uClibc-20150131.tar.bz2" has already been deleted from that directory
and I didn't find a mirror providing the same file.

So I've switched it to use fetchzip from the cgit site instead of using
fetchgit directly. The reason why I didn't use fetchgit is that we'd
need need git, which depends (indirectly? not sure, haven't checked) on
libiconv and that in turn triggers an assertion if we're on Linux and
are cross-building using uclibc.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>

aszlig 50e9dd7d bc46013a

+10 -7
+9 -6
pkgs/os-specific/linux/uclibc/default.nix
··· 1 - {stdenv, fetchurl, linuxHeaders, libiconvReal, cross ? null, gccCross ? null, 1 + {stdenv, fetchzip, linuxHeaders, libiconvReal, cross ? null, gccCross ? null, 2 2 extraConfig ? ""}: 3 3 4 4 assert stdenv.isLinux; ··· 52 52 UCLIBC_HAS_FPU n 53 53 ''; 54 54 55 + name = "uclibc-0.9.34-pre-20150131"; 56 + rev = "343f6b8f1f754e397632b0552e4afe586c8b392b"; 57 + 55 58 in 56 59 57 60 stdenv.mkDerivation { 58 - name = "uclibc-0.9.34-pre-20150131" + stdenv.lib.optionalString (cross != null) 59 - ("-" + cross.config); 61 + name = name + stdenv.lib.optionalString (cross != null) ("-" + cross.config); 60 62 61 - src = fetchurl { 62 - url = http://www.uclibc.org/downloads/snapshots/uClibc-20150131.tar.bz2; 63 - sha256 = "14svyxw4nizdcz4vqk9nizlgy32d8ngpvcca34jjbdjjg77xdvkc"; 63 + src = fetchzip { 64 + name = name + "-source"; 65 + url = "http://git.uclibc.org/uClibc/snapshot/uClibc-${rev}.tar.bz2"; 66 + sha256 = "1kgylzpid7da5i7wz7slh5q9rnq1m8bv5h9ilm76g0xwc2iwlhbw"; 64 67 }; 65 68 66 69 # 'ftw' needed to build acl, a coreutils dependency
+1 -1
pkgs/top-level/all-packages.nix
··· 10268 10268 uclibc = callPackage ../os-specific/linux/uclibc { }; 10269 10269 10270 10270 uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc { 10271 - inherit fetchurl stdenv libiconvReal; 10271 + inherit fetchzip stdenv libiconvReal; 10272 10272 linuxHeaders = linuxHeadersCross; 10273 10273 gccCross = gccCrossStageStatic; 10274 10274 cross = assert crossSystem != null; crossSystem;