diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-03-07 16:52:35 +0000 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-03-08 14:48:23 -0600 |
commit | 1d4bbef0e88a066521ec4fef1e64220149fcadca (patch) | |
tree | fe1d8d2fafaf546e9541f77614213c2bac020e8c /pkgs/tools/misc/wyrd | |
parent | f2661ed72b23583a75fdd415d07c7638bc19d98e (diff) |
wyrd: fix build
Diffstat (limited to 'pkgs/tools/misc/wyrd')
-rw-r--r-- | pkgs/tools/misc/wyrd/default.nix | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pkgs/tools/misc/wyrd/default.nix b/pkgs/tools/misc/wyrd/default.nix index 261c08ad31de1..1029dbb29d8ca 100644 --- a/pkgs/tools/misc/wyrd/default.nix +++ b/pkgs/tools/misc/wyrd/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, ocaml, ncurses, remind, camlp4 }: +{ stdenv, fetchurl, ocamlPackages, ncurses, remind }: stdenv.mkDerivation rec { version = "1.4.6"; @@ -9,10 +9,13 @@ stdenv.mkDerivation rec { sha256 = "0zlrg602q781q8dij62lwdprpfliyy9j1rqfqcz8p2wgndpivddj"; }; - buildInputs = [ ocaml ncurses remind camlp4 ]; + NIX_CFLAGS_COMPILE = [ "-DNCURSES_INTERNALS=1" ]; - # needed for configure phase to succeed - CPPFLAGS = "-DNCURSES_INTERNALS"; + preConfigure = '' + substituteInPlace curses/curses.ml --replace 'pp gcc' "pp $CC" + ''; + + buildInputs = [ ocamlPackages.ocaml ncurses remind ocamlPackages.camlp4 ]; preferLocalBuild = true; |