diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2016-03-26 15:46:28 +0100 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2016-03-26 16:54:59 +0100 |
commit | a4ed0524076c620aa6fc8224ef08360ab72c2ee4 (patch) | |
tree | 522b654a93ed09acc10024e3386f381e0d42f2dc /pkgs/games | |
parent | 6448c94e5789a108dc9e9c5f6e5d67669dcf27c3 (diff) | |
download | nixlib-a4ed0524076c620aa6fc8224ef08360ab72c2ee4.tar nixlib-a4ed0524076c620aa6fc8224ef08360ab72c2ee4.tar.gz nixlib-a4ed0524076c620aa6fc8224ef08360ab72c2ee4.tar.bz2 nixlib-a4ed0524076c620aa6fc8224ef08360ab72c2ee4.tar.lz nixlib-a4ed0524076c620aa6fc8224ef08360ab72c2ee4.tar.xz nixlib-a4ed0524076c620aa6fc8224ef08360ab72c2ee4.tar.zst nixlib-a4ed0524076c620aa6fc8224ef08360ab72c2ee4.zip |
zoom: fix gcc5 build
https://hydra.nixos.org/build/33122239/nixlog/1/raw
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/zoom/default.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/pkgs/games/zoom/default.nix b/pkgs/games/zoom/default.nix index 200b9c24c7db..d6e79289525d 100644 --- a/pkgs/games/zoom/default.nix +++ b/pkgs/games/zoom/default.nix @@ -2,21 +2,26 @@ # !!! assert freetype == xorg.freetype -stdenv.mkDerivation { +stdenv.mkDerivation rec { name = "zoom-1.1.5"; src = fetchurl { - url = http://www.logicalshift.co.uk/unix/zoom/zoom-1.1.5.tar.gz; + url = "http://www.logicalshift.co.uk/unix/zoom/${name}.tar.gz"; sha256 = "1g6van7f7sg3zfcz80mncnnbccyg2hnm0hq4x558vpsm0lf7z5pj"; }; buildInputs = [ perl expat xlibsWrapper freetype ]; - # Zoom doesn't add the right directory in the include path. - CFLAGS = [ "-I" (freetype + "/include/freetype2") ]; + NIX_CFLAGS_COMPILE = [ + # Zoom doesn't add the right directory in the include path. + "-I" (freetype + "/include/freetype2") + + # for gcc5; c11 inline semantics breaks the build + "-fgnu89-inline" + ]; meta = with stdenv.lib; { - description = "Player for Z-Code, TADS and HUGO stories or games, usually text adventures ('interactive fiction')"; + description = "Player for Z-Code, TADS and HUGO stories or games"; longDescription = '' Zoom is a player for Z-Code, TADS and HUGO stories or games. These are usually text adventures ('interactive fiction'), and were first created |