summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/packages/games.scm18
1 files changed, 6 insertions, 12 deletions
diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 0a95d7eacdc..02d8e0438e1 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -2826,8 +2826,8 @@ watch your CPU playing while enjoying a cup of tea!")
2826 #:make-flags 2826 #:make-flags
2827 #~(list 2827 #~(list
2828 (string-append "PREFIX=" #$output) 2828 (string-append "PREFIX=" #$output)
2829 ;; Add the -W without overwriting the -I and -D. 2829 ;; Without this, build system assumes ncurses and tinfo are combined.
2830 "CFLAGS=-g -O2 -I../include -DNOTPARMDECL -Wno-error=cast-qual" 2830 "LIBS=-ltinfo"
2831 (string-append "CC=" #$(cc-for-target)) 2831 (string-append "CC=" #$(cc-for-target))
2832 (string-append "GREPPATH=" 2832 (string-append "GREPPATH="
2833 (search-input-file %build-inputs "/bin/grep"))) 2833 (search-input-file %build-inputs "/bin/grep")))
@@ -2871,15 +2871,9 @@ watch your CPU playing while enjoying a cup of tea!")
2871 (substitute* "sys/unix/sysconf" 2871 (substitute* "sys/unix/sysconf"
2872 (("^.*GREPPATH[^\n]+") 2872 (("^.*GREPPATH[^\n]+")
2873 (string-append "GREPPATH=" 2873 (string-append "GREPPATH="
2874 (search-input-file inputs "/bin/grep")))))) 2874 (search-input-file inputs "/bin/grep"))))
2875 (add-before 'configure 'add-compression 2875 (substitute* "sys/unix/hints/linux.500"
2876 (lambda* (#:key inputs #:allow-other-keys) 2876 (("/bin/gzip") (search-input-file inputs "bin/gzip")))))
2877 (substitute* "include/config.h"
2878 (("^.*define COMPRESS [^\n]+")
2879 (string-append
2880 "#define COMPRESS \""
2881 (search-input-file inputs "/bin/compress")
2882 "\"")))))
2883 (add-before 'configure 'make-reproducible 2877 (add-before 'configure 'make-reproducible
2884 (lambda _ 2878 (lambda _
2885 (substitute* "include/config.h" 2879 (substitute* "include/config.h"
@@ -2946,9 +2940,9 @@ done
2946 pkg-config)) 2940 pkg-config))
2947 (inputs 2941 (inputs
2948 (list grep 2942 (list grep
2943 gzip
2949 less 2944 less
2950 lua-5.4 2945 lua-5.4
2951 ncompress
2952 ncurses/tinfo 2946 ncurses/tinfo
2953 perl)) 2947 perl))
2954 (home-page "https://nethack.org") 2948 (home-page "https://nethack.org")