about summary refs log tree commit diff
path: root/pkgs/tools/text/hyx
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2018-11-10 09:34:56 +0000
committerJörg Thalheim <joerg@thalheim.io>2018-11-10 09:34:56 +0000
commit1fadff893ff22f4dd9cbc8c341ccb0c0cddaacfb (patch)
treedaf9f903f3d1fd2cbeed2d53f90ff14c6673180d /pkgs/tools/text/hyx
parent9fdf71d28f8b2b8f5671bbebc69d9ee1818dd7b2 (diff)
downloadnixlib-1fadff893ff22f4dd9cbc8c341ccb0c0cddaacfb.tar
nixlib-1fadff893ff22f4dd9cbc8c341ccb0c0cddaacfb.tar.gz
nixlib-1fadff893ff22f4dd9cbc8c341ccb0c0cddaacfb.tar.bz2
nixlib-1fadff893ff22f4dd9cbc8c341ccb0c0cddaacfb.tar.lz
nixlib-1fadff893ff22f4dd9cbc8c341ccb0c0cddaacfb.tar.xz
nixlib-1fadff893ff22f4dd9cbc8c341ccb0c0cddaacfb.tar.zst
nixlib-1fadff893ff22f4dd9cbc8c341ccb0c0cddaacfb.zip
hyx: disable wall to fix darwin build
Diffstat (limited to 'pkgs/tools/text/hyx')
-rw-r--r--pkgs/tools/text/hyx/default.nix2
-rw-r--r--pkgs/tools/text/hyx/no-wall-by-default.patch11
2 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/tools/text/hyx/default.nix b/pkgs/tools/text/hyx/default.nix
index 2d8d41bd9426..85085f6627e6 100644
--- a/pkgs/tools/text/hyx/default.nix
+++ b/pkgs/tools/text/hyx/default.nix
@@ -8,6 +8,8 @@ stdenv.mkDerivation rec {
     sha256 = "0gd8fbdyw12jwffa5dgcql4ry22xbdhqdds1qwzk1rkcrkgnc1mg";
   };
 
+  patches = [ ./no-wall-by-default.patch ];
+
   installPhase = ''
     install -vD hyx $out/bin/hyx
   '';
diff --git a/pkgs/tools/text/hyx/no-wall-by-default.patch b/pkgs/tools/text/hyx/no-wall-by-default.patch
new file mode 100644
index 000000000000..48ee20eff179
--- /dev/null
+++ b/pkgs/tools/text/hyx/no-wall-by-default.patch
@@ -0,0 +1,11 @@
+--- hyx-0.1.5.org/Makefile	2018-06-02 17:14:37.000000000 +0100
++++ hyx-0.1.5/Makefile	2018-11-10 09:25:49.569961762 +0000
+@@ -1,7 +1,7 @@
+ 
+ all: CFLAGS ?= -O2 -Wl,-s \
+                -Wl,-z,relro,-z,now -fpic -pie -D_FORTIFY_SOURCE=2 -fstack-protector-all
+-all: CFLAGS += -std=c99 -pedantic -Wall -Wextra -DNDEBUG
++all: CFLAGS += -std=c99 -DNDEBUG
+ all: hyx
+ 
+ debug: CFLAGS ?= -O0 -g \