From b9b8e3acbae451f6a4d95b2faf2ddfd588f224b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edward=20Tj=C3=B6rnhammar?= Date: Tue, 28 Apr 2015 22:41:40 +0200 Subject: [PATCH] {grub2,ceph,libs3,socket_wrapper,nss_wrapper}.src: use mirrors, https and fetchFromSavannah to enable better availability for proxied users --- pkgs/development/libraries/libs3/default.nix | 9 +++++---- pkgs/development/libraries/nss_wrapper/default.nix | 9 ++++----- pkgs/development/libraries/socket_wrapper/default.nix | 9 ++++----- pkgs/tools/filesystems/ceph/0.94.nix | 2 +- pkgs/tools/misc/grub/2.0x.nix | 8 ++++---- 5 files changed, 18 insertions(+), 19 deletions(-) diff --git a/pkgs/development/libraries/libs3/default.nix b/pkgs/development/libraries/libs3/default.nix index 551f65c2971c..3d8699918e16 100644 --- a/pkgs/development/libraries/libs3/default.nix +++ b/pkgs/development/libraries/libs3/default.nix @@ -1,12 +1,13 @@ -{ stdenv, fetchgit, curl, libxml2 }: +{ stdenv, fetchFromGitHub, curl, libxml2 }: stdenv.mkDerivation { name = "libs3-2015-01-09"; - src = fetchgit { - url = "git://github.com/bji/libs3.git"; + src = fetchFromGitHub { + owner = "bji"; + repo = "libs3"; rev = "4d21fdc0857b88c964649b321057d7105d1e4da3"; - sha256 = "058sixppk078mdn9ii3swg87nbpgl86llz9mdhj5km5m53a7dnjw"; + sha256 = "1c33h8lzlpmsbkymd2dac9g8hqhd6j6yzdjrhha8bcqyys6vcpy3"; }; buildInputs = [ curl libxml2 ]; diff --git a/pkgs/development/libraries/nss_wrapper/default.nix b/pkgs/development/libraries/nss_wrapper/default.nix index b0595e61e65d..278834190bbf 100644 --- a/pkgs/development/libraries/nss_wrapper/default.nix +++ b/pkgs/development/libraries/nss_wrapper/default.nix @@ -1,12 +1,11 @@ -{ stdenv, fetchgit, cmake, pkgconfig }: +{ stdenv, fetchurl, cmake, pkgconfig }: stdenv.mkDerivation rec { name = "nss_wrapper-1.0.3"; - src = fetchgit { - url = "git://git.samba.org/nss_wrapper.git"; - rev = "refs/tags/${name}"; - sha256 = "1jka6d873vhvfr7k378xvgxmbpka87w33iq6b91ynwg36pz53ifw"; + src = fetchurl { + url = "mirror://samba/cwrap/${name}.tar.gz"; + sha256 = "0bysdijvi9n0jk74iklbfhbp0kvv81a727lcfd5q03q2hkzjfm18"; }; buildInputs = [ cmake pkgconfig ]; diff --git a/pkgs/development/libraries/socket_wrapper/default.nix b/pkgs/development/libraries/socket_wrapper/default.nix index 1344ad18d09f..d682b10141ec 100644 --- a/pkgs/development/libraries/socket_wrapper/default.nix +++ b/pkgs/development/libraries/socket_wrapper/default.nix @@ -1,12 +1,11 @@ -{ stdenv, fetchgit, cmake, pkgconfig }: +{ stdenv, fetchurl, cmake, pkgconfig }: stdenv.mkDerivation rec { name = "socket_wrapper-1.1.3"; - src = fetchgit { - url = "git://git.samba.org/socket_wrapper.git"; - rev = "refs/tags/${name}"; - sha256 = "0b3sfjy7418gg52qkdblfi5x57g4m44n7434xhacz9isyl5m52vn"; + src = fetchurl { + url = "mirror://samba/cwrap/${name}.tar.gz"; + sha256 = "04xfa4yhcaj63ymagmlx77fakrx3wb8ss42m15pmwjaiyi2xndx3"; }; buildInputs = [ cmake pkgconfig ]; diff --git a/pkgs/tools/filesystems/ceph/0.94.nix b/pkgs/tools/filesystems/ceph/0.94.nix index 0fc2b60748ab..a14259184a57 100644 --- a/pkgs/tools/filesystems/ceph/0.94.nix +++ b/pkgs/tools/filesystems/ceph/0.94.nix @@ -4,7 +4,7 @@ callPackage ./generic.nix (args // rec { version = "0.94.1"; src = fetchgit { - url = "git://github.com/ceph/ceph.git"; + url = "https://github.com/ceph/ceph.git"; rev = "refs/tags/v${version}"; sha256 = "0rrl10vda4xv22al2c5ccd8v8drs26186dvkrxndvqz8p9999cjx"; }; diff --git a/pkgs/tools/misc/grub/2.0x.nix b/pkgs/tools/misc/grub/2.0x.nix index 47eb90eb11e1..501c6820df23 100644 --- a/pkgs/tools/misc/grub/2.0x.nix +++ b/pkgs/tools/misc/grub/2.0x.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, fetchgit, autogen, flex, bison, python, autoconf, automake +{ stdenv, fetchurl, fetchFromSavannah, autogen, flex, bison, python, autoconf, automake , gettext, ncurses, libusb, freetype, qemu, devicemapper , zfs ? null , efiSupport ? false @@ -41,10 +41,10 @@ assert zfsSupport -> zfs != null; stdenv.mkDerivation rec { name = "grub-${version}"; - src = fetchgit { - url = "git://git.savannah.gnu.org/grub.git"; + src = fetchFromSavannah { + repo = "grub"; rev = "70b002de55abbfd6b2d2f2ea4408078d93c9e0de"; - sha256 = "1170413b4d9kwqwgi1dcsnbwn8mb3snbid858wyfv84910kbrs2d"; + sha256 = "1bhm1yxjmckzn45v70lzmz0qpj5prhb4iyiyqqw8rvyykcixw5qk"; }; nativeBuildInputs = [ autogen flex bison python autoconf automake ];