summary refs log tree commit diff
path: root/pkgs/applications/editors
diff options
context:
space:
mode:
authorSebastian Hagen <sh_c_git@memespace.net>2017-01-08 13:32:09 +0000
committerSebastian Hagen <sh_c_git@memespace.net>2017-01-08 13:46:16 +0000
commit547b203b9a28968bba9e9902dbff4600779ed75b (patch)
tree42bbf3d17150e8a0ac79712838321b36a6029721 /pkgs/applications/editors
parent9653be493a961dd0fdef863385b00130eb57646f (diff)
downloadnixlib-547b203b9a28968bba9e9902dbff4600779ed75b.tar
nixlib-547b203b9a28968bba9e9902dbff4600779ed75b.tar.gz
nixlib-547b203b9a28968bba9e9902dbff4600779ed75b.tar.bz2
nixlib-547b203b9a28968bba9e9902dbff4600779ed75b.tar.lz
nixlib-547b203b9a28968bba9e9902dbff4600779ed75b.tar.xz
nixlib-547b203b9a28968bba9e9902dbff4600779ed75b.tar.zst
nixlib-547b203b9a28968bba9e9902dbff4600779ed75b.zip
ed: Add fedoraproject mirror.
The existing URL has gone dark; this commit adds one from fedoraproject.org
that still works. We put the new mirror first since ed is in the bootstrap
path, and 16.09 bootstrap doesn't try later URLs.
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r--pkgs/applications/editors/ed/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/editors/ed/default.nix b/pkgs/applications/editors/ed/default.nix
index 650a551cb601..680b7f8a0307 100644
--- a/pkgs/applications/editors/ed/default.nix
+++ b/pkgs/applications/editors/ed/default.nix
@@ -2,6 +2,7 @@
 
 stdenv.mkDerivation rec {
   name = "ed-1.13";
+  file_md5 = "fb8ffc8d8072e13dd5799131e889bfa5"; # for fedora mirror
 
   src = fetchurl {
     # gnu only provides *.lz tarball, which is unfriendly for stdenv bootstrapping
@@ -9,7 +10,10 @@ stdenv.mkDerivation rec {
     # When updating, please make sure the sources pulled match those upstream by
     # Unpacking both tarballs and running `find . -type f -exec sha256sum \{\} \; | sha256sum`
     # in the resulting directory
-    url = "http://fossies.org/linux/privat/${name}.tar.bz2";
+    urls = [
+      "http://pkgs.fedoraproject.org/repo/extras/ed/${name}.tar.bz2/${file_md5}/${name}.tar.bz2"
+      "http://fossies.org/linux/privat/${name}.tar.bz2"
+    ];
     sha256 = "1iym2fsamxr886l3sz8lqzgf00bip5cr0aly8jp04f89kf5mvl0j";
   };