epic5: add configure flags

This commit is contained in:
Daiderd Jordan 2017-02-13 23:35:09 +01:00
parent dda70d9b06
commit 66eba1f3e0
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -1,5 +1,4 @@
{stdenv, fetchurl, pkgs, openssl
, ncurses, libiconv, tcl }:
{ stdenv, fetchurl, openssl, ncurses, libiconv, tcl }:
stdenv.mkDerivation rec {
name = "epic5-${version}";
@ -8,20 +7,21 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/${name}.tar.xz";
sha256 = "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm";
};
};
# Darwin needs libiconv, tcl; while Linux build don't
buildInputs = [ openssl ncurses ]
++ stdenv.lib.optionals stdenv.isDarwin [ libiconv tcl ];
configureFlags = [ "--disable-debug" "--with-ipv6" ];
# Darwin needs libiconv, tcl; while Linux build don't
buildInputs = [ openssl ncurses ]
++ stdenv.lib.optionals
stdenv.isDarwin [ libiconv tcl ];
postConfigure = ''
substituteInPlace bsdinstall \
substituteInPlace bsdinstall \
--replace /bin/cp cp \
--replace /bin/rm rm \
--replace /bin/chmod chmod \
'';
--replace /bin/chmod chmod
'';
meta = with stdenv.lib; {
homepage = "http://epicsol.org/";
description = "a IRC client that offers a great ircII interface";