Skip to content

Commit 28e4975

Browse files
committedSep 6, 2017
zile: disable help2man for cross builds
@dezgeg caught my error--the issue isn't building help2man, but running it on cross-compiled binaries. This effectively reverts 0825f30 as far as behavior is concerned, but keeps the removal of `crossAttrs`.
1 parent 8e37e74 commit 28e4975

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

Diff for: ‎pkgs/applications/editors/zile/default.nix

+6-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ stdenv.mkDerivation rec {
99
};
1010

1111
buildInputs = [ pkgconfig ncurses boehmgc ];
12-
nativeBuildInputs = [ help2man perl ];
12+
nativeBuildInputs = [ perl ]
13+
# `help2man' wants to run Zile, which won't work when the
14+
# newly-produced binary can't be run at build-time.
15+
++ stdenv.lib.optional
16+
(stdenv.hostPlatform == stdenv.buildPlatform)
17+
help2man;
1318

1419
# Tests can't be run because most of them rely on the ability to
1520
# fiddle with the terminal.

0 commit comments

Comments
 (0)
Please sign in to comment.