summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/editors/ed
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-08-27 20:29:52 +0200
committerRobin Gloster <mail@glob.in>2017-08-27 20:29:52 +0200
commitccbdab96d436497e084be1f6d26460f13dee676b (patch)
tree360402037eeea4682bd4c2abbc8dd0b89a525625 /pkgs/applications/editors/ed
parentdfd905b548e943f31eac36d487089116c2af10fb (diff)
ed: 1.14.1 -> 1.14.2
Diffstat (limited to 'pkgs/applications/editors/ed')
-rw-r--r--pkgs/applications/editors/ed/default.nix28
1 files changed, 9 insertions, 19 deletions
diff --git a/pkgs/applications/editors/ed/default.nix b/pkgs/applications/editors/ed/default.nix
index 2404405c307f..9d5848f02637 100644
--- a/pkgs/applications/editors/ed/default.nix
+++ b/pkgs/applications/editors/ed/default.nix
@@ -1,26 +1,20 @@
-{ stdenv, fetchurl
+{ stdenv, fetchurl, lzip
, buildPlatform, hostPlatform
}:
stdenv.mkDerivation rec {
name = "ed-${version}";
- version = "1.14.1";
+ version = "1.14.2";
src = fetchurl {
- # gnu only provides *.lz tarball, which is unfriendly for stdenv bootstrapping
- #url = "mirror://gnu/ed/${name}.tar.gz";
- # 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 = let file_sha512 = "84396fe4e4f0bf0b591037277ff8679a08b2883207628aaa387644ad83ca5fbdaa74a581f33310e28222d2fea32a0b8ba37e579597cc7d6145df6eb956ea75db";
- in [
- ("http://pkgs.fedoraproject.org/repo/extras/ed"
- + "/${name}.tar.bz2/sha512/${file_sha512}/${name}.tar.bz2")
- "http://fossies.org/linux/privat/${name}.tar.bz2"
- ];
- sha256 = "1pk6qa4sr7qc6vgm34hjx44hsh8x2bwaxhdi78jhsacnn4zwi7bw";
+ url = "mirror://gnu/ed/${name}.tar.lz";
+ sha256 = "1nqhk3n1s1p77g2bjnj55acicsrlyb2yasqxqwpx0w0djfx64ygm";
};
+ unpackCmd = "tar --lzip -xf";
+
+ nativeBuildInputs = [ lzip ];
+
/* FIXME: Tests currently fail on Darwin:
building test scripts for ed-1.5...
@@ -32,11 +26,7 @@ stdenv.mkDerivation rec {
*/
doCheck = !(hostPlatform.isDarwin || hostPlatform != buildPlatform);
- # TODO(@Ericson2314): Use placeholder to make this a configure flag once Nix
- # 1.12 is released.
- preConfigure = ''
- export DESTDIR=$out
- '';
+ installFlags = [ "DESTDIR=$(out)" ];
configureFlags = [
"--exec-prefix=${stdenv.cc.prefix}"