ed: avoid the useless rebuild due to #21752

+6 -5
+6 -5
pkgs/applications/editors/ed/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "ed-1.13"; 5 - file_md5 = "fb8ffc8d8072e13dd5799131e889bfa5"; # for fedora mirror 6 5 7 6 src = fetchurl { 8 7 # gnu only provides *.lz tarball, which is unfriendly for stdenv bootstrapping ··· 10 9 # When updating, please make sure the sources pulled match those upstream by 11 10 # Unpacking both tarballs and running `find . -type f -exec sha256sum \{\} \; | sha256sum` 12 11 # in the resulting directory 13 - urls = [ 14 - "http://pkgs.fedoraproject.org/repo/extras/ed/${name}.tar.bz2/${file_md5}/${name}.tar.bz2" 15 - "http://fossies.org/linux/privat/${name}.tar.bz2" 16 - ]; 12 + urls = let file_md5 = "fb8ffc8d8072e13dd5799131e889bfa5"; # for fedora mirror 13 + in [ 14 + ("http://pkgs.fedoraproject.org/repo/extras/ed" 15 + + "/${name}.tar.bz2/${file_md5}/${name}.tar.bz2") 16 + "http://fossies.org/linux/privat/${name}.tar.bz2" 17 + ]; 17 18 sha256 = "1iym2fsamxr886l3sz8lqzgf00bip5cr0aly8jp04f89kf5mvl0j"; 18 19 }; 19 20