diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2017-09-06 00:11:47 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2017-09-06 00:31:25 -0400 |
commit | 28e4975bd1c245c580d37daa84c4c307ec9b18be (patch) | |
tree | a49bb90e798fd0f9b1afa3de52af58504259f0e1 /pkgs/applications/editors/zile | |
parent | 8e37e744d2c24d9eb733718786d33ec57613a05b (diff) |
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 0825f30fd2b76ded554221630d9a0439ff6514cb as far as behavior is concerned, but keeps the removal of `crossAttrs`.
Diffstat (limited to 'pkgs/applications/editors/zile')
-rw-r--r-- | pkgs/applications/editors/zile/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/editors/zile/default.nix b/pkgs/applications/editors/zile/default.nix index 936cde61ee852..fc2e8aa03de30 100644 --- a/pkgs/applications/editors/zile/default.nix +++ b/pkgs/applications/editors/zile/default.nix @@ -9,7 +9,12 @@ stdenv.mkDerivation rec { }; buildInputs = [ pkgconfig ncurses boehmgc ]; - nativeBuildInputs = [ help2man perl ]; + nativeBuildInputs = [ perl ] + # `help2man' wants to run Zile, which won't work when the + # newly-produced binary can't be run at build-time. + ++ stdenv.lib.optional + (stdenv.hostPlatform == stdenv.buildPlatform) + help2man; # Tests can't be run because most of them rely on the ability to # fiddle with the terminal. |