From 1e04d875db7b16348318f53589e92b190e9322ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sun, 7 Feb 2016 13:18:48 +0100 Subject: [PATCH] videolan.org sources: prefer http://get.videolan.org Some of the original URLs were broken now. It seems that set of mirrors is preferred and faster than the others. In the x264 case the source isn't there so http://download.videolan.org is used instead. --- pkgs/applications/video/vlc/default.nix | 2 +- pkgs/development/libraries/libaacs/default.nix | 2 +- pkgs/development/libraries/libbdplus/default.nix | 2 +- pkgs/development/libraries/libbluray/default.nix | 2 +- pkgs/development/libraries/libdvbpsi/default.nix | 8 ++++---- pkgs/development/libraries/libdvdcss/default.nix | 9 +++++---- pkgs/development/libraries/libdvdnav/default.nix | 2 +- pkgs/development/libraries/libdvdread/default.nix | 2 +- pkgs/development/libraries/x264/default.nix | 6 +++--- pkgs/development/libraries/x265/default.nix | 5 ++++- 10 files changed, 22 insertions(+), 18 deletions(-) diff --git a/pkgs/applications/video/vlc/default.nix b/pkgs/applications/video/vlc/default.nix index 12df7e41dd88..ebfa2f0484d3 100644 --- a/pkgs/applications/video/vlc/default.nix +++ b/pkgs/applications/video/vlc/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { version = "2.2.1"; src = fetchurl { - url = "http://download.videolan.org/vlc/${version}/${name}.tar.xz"; + url = "http://get.videolan.org/vlc/${version}/${name}.tar.xz"; sha256 = "1jqzrzrpw6932lbkf863xk8cfmn4z2ngbxz7w8ggmh4f6xz9sgal"; }; diff --git a/pkgs/development/libraries/libaacs/default.nix b/pkgs/development/libraries/libaacs/default.nix index 119a46bfc31d..e12929e9f696 100644 --- a/pkgs/development/libraries/libaacs/default.nix +++ b/pkgs/development/libraries/libaacs/default.nix @@ -15,7 +15,7 @@ stdenv.mkDerivation { name = "${baseName}-${version}"; src = fetchurl { - url = "http://download.videolan.org/pub/videolan/${baseName}/${version}/${baseName}-${version}.tar.bz2"; + url = "http://get.videolan.org/${baseName}/${version}/${baseName}-${version}.tar.bz2"; sha256 = "1s5v075hnbs57995r6lljm79wgrip3gnyf55a0y7bja75jh49hwm"; }; diff --git a/pkgs/development/libraries/libbdplus/default.nix b/pkgs/development/libraries/libbdplus/default.nix index 8cc2e8069320..67428f132495 100644 --- a/pkgs/development/libraries/libbdplus/default.nix +++ b/pkgs/development/libraries/libbdplus/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation { name = "${baseName}-${version}"; src = fetchurl { - url = "http://download.videolan.org/pub/videolan/${baseName}/${version}/${baseName}-${version}.tar.bz2"; + url = "http://get.videolan.org/${baseName}/${version}/${baseName}-${version}.tar.bz2"; sha256 = "02n87lysqn4kg2qk7d1ffrp96c44zkdlxdj0n16hbgrlrpiwlcd6"; }; diff --git a/pkgs/development/libraries/libbluray/default.nix b/pkgs/development/libraries/libbluray/default.nix index 7d7689bf23ed..08905455d353 100644 --- a/pkgs/development/libraries/libbluray/default.nix +++ b/pkgs/development/libraries/libbluray/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { name = "${baseName}-${version}"; src = fetchurl { - url = "ftp://ftp.videolan.org/pub/videolan/${baseName}/${version}/${name}.tar.bz2"; + url = "http://get.videolan.org/${baseName}/${version}/${name}.tar.bz2"; sha256 = "1sp71j4agcsg17g6b85cqz78pn5vknl5pl39rvr6mkib5ps99jgg"; }; diff --git a/pkgs/development/libraries/libdvbpsi/default.nix b/pkgs/development/libraries/libdvbpsi/default.nix index f8b9e9ecef90..ecfa14a43c9a 100644 --- a/pkgs/development/libraries/libdvbpsi/default.nix +++ b/pkgs/development/libraries/libdvbpsi/default.nix @@ -1,11 +1,11 @@ {stdenv, fetchurl}: -stdenv.mkDerivation { - - name = "libdvbpsi-0.2.2"; +stdenv.mkDerivation rec { + name = "libdvbpsi-${version}"; + version = "0.2.2"; src = fetchurl { - url = http://download.videolan.org/pub/libdvbpsi/0.2.2/libdvbpsi-0.2.2.tar.bz2; + url = "http://get.videolan.org/libdvbpsi/${version}/${name}.tar.bz2"; sha256 = "1lry2swxqm8mhq0a4rjnc819ngsf2pxnfjajb57lml7yr12j79ls"; }; diff --git a/pkgs/development/libraries/libdvdcss/default.nix b/pkgs/development/libraries/libdvdcss/default.nix index 8632da12c735..d68b0a367517 100644 --- a/pkgs/development/libraries/libdvdcss/default.nix +++ b/pkgs/development/libraries/libdvdcss/default.nix @@ -1,10 +1,11 @@ {stdenv, fetchurl}: -stdenv.mkDerivation { - name = "libdvdcss-1.3.0"; - +stdenv.mkDerivation rec { + name = "libdvdcss-${version}"; + version = "1.3.0"; + src = fetchurl { - url = http://download.videolan.org/pub/libdvdcss/1.3.0/libdvdcss-1.3.0.tar.bz2; + url = "http://get.videolan.org/libdvdcss/${version}/${name}.tar.bz2"; sha256 = "158k9zagmbk5bkbz96l6lwhh7xcgfcnzflkr4vblskhcab6llhbw"; }; diff --git a/pkgs/development/libraries/libdvdnav/default.nix b/pkgs/development/libraries/libdvdnav/default.nix index fe625aa69e12..5c931f4d6f4c 100644 --- a/pkgs/development/libraries/libdvdnav/default.nix +++ b/pkgs/development/libraries/libdvdnav/default.nix @@ -5,7 +5,7 @@ stdenv.mkDerivation rec { version = "5.0.3"; src = fetchurl { - url = "http://download.videolan.org/pub/videolan/libdvdnav/${version}/libdvdnav-${version}.tar.bz2"; + url = "http://get.videolan.org/libdvdnav/${version}/${name}.tar.bz2"; sha256 = "5097023e3d2b36944c763f1df707ee06b19dc639b2b68fb30113a5f2cbf60b6d"; }; diff --git a/pkgs/development/libraries/libdvdread/default.nix b/pkgs/development/libraries/libdvdread/default.nix index 311bc6dc4058..493be4c8f86b 100644 --- a/pkgs/development/libraries/libdvdread/default.nix +++ b/pkgs/development/libraries/libdvdread/default.nix @@ -5,7 +5,7 @@ stdenv.mkDerivation rec { version = "5.0.2"; src = fetchurl { - url = "http://download.videolan.org/pub/videolan/libdvdread/${version}/libdvdread-${version}.tar.bz2"; + url = "http://get.videolan.org/libdvdread/${version}/${name}.tar.bz2"; sha256 = "82cbe693f2a3971671e7428790b5498392db32185b8dc8622f7b9cd307d3cfbf"; }; diff --git a/pkgs/development/libraries/x264/default.nix b/pkgs/development/libraries/x264/default.nix index 6c541f1aa682..3c2423434939 100644 --- a/pkgs/development/libraries/x264/default.nix +++ b/pkgs/development/libraries/x264/default.nix @@ -1,11 +1,11 @@ {stdenv, fetchurl, yasm, enable10bit ? false}: stdenv.mkDerivation rec { - version = "snapshot-20141218-2245-stable"; - name = "x264-20141218-2245"; + version = "20141218-2245"; + name = "x264-${version}"; src = fetchurl { - url = "ftp://ftp.videolan.org/pub/videolan/x264/snapshots/x264-${version}.tar.bz2"; + url = "http://download.videolan.org/x264/snapshots/x264-snapshot-${version}-stable.tar.bz2"; sha256 = "1gp1f0382vh2hmgc23ldqyywcfljg8lsgl2849ymr14r6gxfh69m"; }; diff --git a/pkgs/development/libraries/x265/default.nix b/pkgs/development/libraries/x265/default.nix index 1598fec61948..1473910e004f 100644 --- a/pkgs/development/libraries/x265/default.nix +++ b/pkgs/development/libraries/x265/default.nix @@ -19,7 +19,10 @@ stdenv.mkDerivation rec { version = "1.7"; src = fetchurl { - url = "https://github.com/videolan/x265/archive/${version}.tar.gz"; + urls = [ + "http://get.videolan.org/x265/x265_${version}.tar.gz" + "https://github.com/videolan/x265/archive/${version}.tar.gz" + ]; sha256 = "18w3whmbjlalvysny51kdq9b228iwg3rdav4kmifazksvrm4yacq"; };