nixpkgs/pkgs/applications/networking/irc/epic5/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, openssl, ncurses, libiconv, tcl, coreutils, fetchpatch }:
stdenv.mkDerivation rec {
pname = "epic5";
version = "2.0.1";
src = fetchurl {
url = "http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/${pname}-${version}.tar.xz";
sha256 = "1ap73d5f4vccxjaaq249zh981z85106vvqmxfm4plvy76b40y9jm";
2017-02-13 23:35:09 +01:00
};
# Darwin needs libiconv, tcl; while Linux build don't
buildInputs = [ openssl ncurses ]
2021-01-15 06:42:41 +01:00
++ lib.optionals stdenv.isDarwin [ libiconv tcl ];
2017-02-13 23:35:09 +01:00
2017-04-29 12:30:22 +02: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 23:35:09 +01:00
configureFlags = [ "--disable-debug" "--with-ipv6" ];
postConfigure = ''
2017-02-13 23:35:09 +01:00
substituteInPlace bsdinstall \
--replace /bin/cp ${coreutils}/bin/cp \
--replace /bin/rm ${coreutils}/bin/rm \
--replace /bin/chmod ${coreutils}/bin/chmod \
2017-02-13 23:35:09 +01:00
'';
meta = with lib; {
homepage = "http://epicsol.org";
description = "A IRC client that offers a great ircII interface";
license = licenses.bsd3;
2019-12-26 22:28:10 +01:00
maintainers = [];
};
}