summary refs log tree commit diff
path: root/pkgs/os-specific/linux/uclibc
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2015-08-19 18:34:29 +0200
committeraszlig <aszlig@redmoonstudios.org>2015-08-19 18:43:24 +0200
commit50e9dd7da19b11258664f2acd0e953d56d3dce7e (patch)
tree07993f29e313a8d80a9627853e2fac34624c463b /pkgs/os-specific/linux/uclibc
parentbc46013ac113a1d87b8b96b27cc7b18cc79fc177 (diff)
downloadnixpkgs-50e9dd7da19b11258664f2acd0e953d56d3dce7e.tar
nixpkgs-50e9dd7da19b11258664f2acd0e953d56d3dce7e.tar.gz
nixpkgs-50e9dd7da19b11258664f2acd0e953d56d3dce7e.tar.bz2
nixpkgs-50e9dd7da19b11258664f2acd0e953d56d3dce7e.tar.lz
nixpkgs-50e9dd7da19b11258664f2acd0e953d56d3dce7e.tar.xz
nixpkgs-50e9dd7da19b11258664f2acd0e953d56d3dce7e.tar.zst
nixpkgs-50e9dd7da19b11258664f2acd0e953d56d3dce7e.zip
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>
Diffstat (limited to 'pkgs/os-specific/linux/uclibc')
-rw-r--r--pkgs/os-specific/linux/uclibc/default.nix15
1 files changed, 9 insertions, 6 deletions
diff --git a/pkgs/os-specific/linux/uclibc/default.nix b/pkgs/os-specific/linux/uclibc/default.nix
index 88cf59cf8b7..472d432bc63 100644
--- a/pkgs/os-specific/linux/uclibc/default.nix
+++ b/pkgs/os-specific/linux/uclibc/default.nix
@@ -1,4 +1,4 @@
-{stdenv, fetchurl, linuxHeaders, libiconvReal, cross ? null, gccCross ? null,
+{stdenv, fetchzip, linuxHeaders, libiconvReal, cross ? null, gccCross ? null,
 extraConfig ? ""}:
 
 assert stdenv.isLinux;
@@ -52,15 +52,18 @@ let
     UCLIBC_HAS_FPU n
   '';
 
+  name = "uclibc-0.9.34-pre-20150131";
+  rev = "343f6b8f1f754e397632b0552e4afe586c8b392b";
+
 in
 
 stdenv.mkDerivation {
-  name = "uclibc-0.9.34-pre-20150131" + stdenv.lib.optionalString (cross != null)
-    ("-" + cross.config);
+  name = name + stdenv.lib.optionalString (cross != null) ("-" + cross.config);
 
-  src = fetchurl {
-    url = http://www.uclibc.org/downloads/snapshots/uClibc-20150131.tar.bz2;
-    sha256 = "14svyxw4nizdcz4vqk9nizlgy32d8ngpvcca34jjbdjjg77xdvkc";
+  src = fetchzip {
+    name = name + "-source";
+    url = "http://git.uclibc.org/uClibc/snapshot/uClibc-${rev}.tar.bz2";
+    sha256 = "1kgylzpid7da5i7wz7slh5q9rnq1m8bv5h9ilm76g0xwc2iwlhbw";
   };
 
   # 'ftw' needed to build acl, a coreutils dependency