mesa: add download url (close #11942)

vcunat refactored a bit (too long line, etc.) and reordered the URLs.
This commit is contained in:
Yann Hodique 2015-12-24 16:32:44 -08:00 committed by Vladimír Čunát
parent 4f3d769d6f
commit bc6e050f21

View File

@ -33,8 +33,10 @@ stdenv.mkDerivation {
src = fetchurl {
urls = [
"https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz"
"ftp://ftp.freedesktop.org/pub/mesa/${version}/mesa-${version}.tar.xz"
(with stdenv.lib; ''ftp://ftp.freedesktop.org/pub/mesa/older-versions/''
+ head (splitString "." version) + ''.x/${version}/mesa-${version}.tar.xz'')
"https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz"
];
sha256 = "9c255a2a6695fcc6ef4a279e1df0aeaf417dc142f39ee59dfb533d80494bb67a";
};