diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-01-08 22:16:00 +0100 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-01-08 22:17:18 +0100 |
commit | 936bc23b414e562da9fd8ce5e3e360929d25262c (patch) | |
tree | d19f5d98f7530455143d504e6618bce4b02aab4d /pkgs/applications/editors/ed | |
parent | f553aaca880b56d4369544d98472bc52656257f5 (diff) |
ed: avoid the useless rebuild due to #21752
Diffstat (limited to 'pkgs/applications/editors/ed')
-rw-r--r-- | pkgs/applications/editors/ed/default.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pkgs/applications/editors/ed/default.nix b/pkgs/applications/editors/ed/default.nix index 680b7f8a0307..9cb644cc9315 100644 --- a/pkgs/applications/editors/ed/default.nix +++ b/pkgs/applications/editors/ed/default.nix @@ -2,7 +2,6 @@ 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 @@ -10,10 +9,12 @@ 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 - urls = [ - "http://pkgs.fedoraproject.org/repo/extras/ed/${name}.tar.bz2/${file_md5}/${name}.tar.bz2" - "http://fossies.org/linux/privat/${name}.tar.bz2" - ]; + urls = let file_md5 = "fb8ffc8d8072e13dd5799131e889bfa5"; # for fedora mirror + in [ + ("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"; }; |