2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, openssl, ncurses, libiconv, tcl, coreutils, fetchpatch }:
|
2017-02-13 02:51:17 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "epic5";
|
2017-02-13 02:51:17 +00:00
|
|
|
version = "2.0.1";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/${pname}-${version}.tar.xz";
|
2017-02-13 02:51:17 +00:00
|
|
|
sha256 = "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm";
|
2017-02-13 22:35:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Darwin needs libiconv, tcl; while Linux build don't
|
|
|
|
buildInputs = [ openssl ncurses ]
|
2021-01-15 05:42:41 +00:00
|
|
|
++ lib.optionals stdenv.isDarwin [ libiconv tcl ];
|
2017-02-13 22:35:09 +00:00
|
|
|
|
2017-04-29 11:30:22 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://sources.debian.net/data/main/e/epic5/2.0.1-1/debian/patches/openssl-1.1.patch";
|
|
|
|
sha256 = "03bpsyv1sr5icajs2qkdvv8nnn6rz6yvvj7pgiq8gz9sbp6siyfv";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2017-02-13 22:35:09 +00:00
|
|
|
configureFlags = [ "--disable-debug" "--with-ipv6" ];
|
|
|
|
|
2017-02-13 02:51:17 +00:00
|
|
|
postConfigure = ''
|
2017-02-13 22:35:09 +00:00
|
|
|
substituteInPlace bsdinstall \
|
2017-02-18 19:10:00 +00:00
|
|
|
--replace /bin/cp ${coreutils}/bin/cp \
|
|
|
|
--replace /bin/rm ${coreutils}/bin/rm \
|
|
|
|
--replace /bin/chmod ${coreutils}/bin/chmod \
|
2017-02-13 22:35:09 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://epicsol.org";
|
2017-02-18 19:10:00 +00:00
|
|
|
description = "A IRC client that offers a great ircII interface";
|
2017-02-13 02:51:17 +00:00
|
|
|
license = licenses.bsd3;
|
2019-12-26 21:28:10 +00:00
|
|
|
maintainers = [];
|
2017-02-13 02:51:17 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|