git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32322 from berce/staging

ed: fix docs location. Fixes #32150. Supersedes #32315.

commita9b59003600e8d4891966e079c660212651c3b55 authorOrivej Desh <orivej@gmx.fr> dateMon 4 Dec 2017, 23:33 (9 years ago) parent2a230ddbb2b458
3 files changed+9−19
pkgs/applications/editors/ed/default.nix+1−19 pkgs/tools/compression/lzip/default.nix+3 pkgs/tools/compression/lzip/lzip-setup-hook.sh+5
pkgs/applications/editors/ed/default.nix+1−19
@@ -11,27 +11,9 @@ stdenv.mkDerivation rec {
1111 sha256 = "1nqhk3n1s1p77g2bjnj55acicsrlyb2yasqxqwpx0w0djfx64ygm";
1212 };
1313
14− unpackCmd = "tar --lzip -xf";
15−
1614 nativeBuildInputs = [ lzip ];
1715
18− /* FIXME: Tests currently fail on Darwin:
19−
20− building test scripts for ed-1.5...
21− testing ed-1.5...
22− *** Output e1.o of script e1.ed is incorrect ***
23− *** Output r3.o of script r3.ed is incorrect ***
24− make: *** [check] Error 127
25−
26− */
27− doCheck = !(hostPlatform.isDarwin || hostPlatform != buildPlatform);
28−
29− installFlags = [ "DESTDIR=$(out)" ];
30−
31− configureFlags = [
32− "--exec-prefix=${stdenv.cc.targetPrefix}"
33− "CC=${stdenv.cc.targetPrefix}cc"
34− ];
16+ doCheck = hostPlatform == buildPlatform;
3517
3618 meta = {
3719 description = "An implementation of the standard Unix editor";
pkgs/tools/compression/lzip/default.nix+3
@@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
1313
1414 configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
1515
16+ setupHook = ./lzip-setup-hook.sh;
17+
1618 doCheck = true;
19+ enableParallelBuilding = true;
1720
1821 meta = {
1922 homepage = http://www.nongnu.org/lzip/lzip.html;
pkgs/tools/compression/lzip/lzip-setup-hook.shnew file+5
@@ -0,0 +1,5 @@
1+lzipUnpackCmdHook() {
2+ [[ "$1" = *.tar.lz ]] && tar --lzip -xf "$1"
3+}
4+
5+unpackCmdHooks+=(lzipUnpackCmdHook)