From d66a1a46e6f1f82ad8305d669db5c3a8cca147c3 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 16 Dec 2015 00:49:43 +0100 Subject: [PATCH] colordiff: add archive URL When a new version of colordiff is released the old tarball is moved to the archive directory. This breaks builds until the derivation is updated to the new version. This commit lets fetchurl know about the archive URL. --- pkgs/tools/text/colordiff/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/text/colordiff/default.nix b/pkgs/tools/text/colordiff/default.nix index 9b041ae4b2be..53e683561fb8 100644 --- a/pkgs/tools/text/colordiff/default.nix +++ b/pkgs/tools/text/colordiff/default.nix @@ -4,7 +4,10 @@ stdenv.mkDerivation rec { name = "colordiff-1.0.16"; src = fetchurl { - url = "http://www.colordiff.org/${name}.tar.gz"; + urls = [ + "http://www.colordiff.org/${name}.tar.gz" + "http://www.colordiff.org/archive/${name}.tar.gz" + ]; sha256 = "12qkkw13261dra8pg7mzx4r8p9pb0ajb090bib9j1s6hgphwzwga"; };