2014-11-23 16:36:16 +01:00
|
|
|
{stdenv, fetchurl, ncurses, tcl, openssl, pam, pkgconfig, gettext, kerberos
|
|
|
|
, openldap
|
|
|
|
}:
|
2016-02-09 11:29:15 +01:00
|
|
|
|
2016-08-25 08:28:45 +02:00
|
|
|
# NOTE: Please check if any changes here are applicable to ../realpine/ as well
|
2014-11-23 16:36:16 +01:00
|
|
|
let
|
2016-02-09 11:29:15 +01:00
|
|
|
version = "2.00";
|
|
|
|
baseName = "alpine";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2014-11-23 16:36:16 +01:00
|
|
|
url = "ftp://ftp.cac.washington.edu/alpine/alpine-${version}.tar.bz2";
|
|
|
|
sha256 = "19m2w21dqn55rhxbh5lr9qarc2fqa9wmpj204jx7a0zrb90bhpf8";
|
|
|
|
};
|
2016-02-09 11:29:15 +01:00
|
|
|
|
2014-11-23 16:36:16 +01:00
|
|
|
buildInputs = [
|
|
|
|
ncurses tcl openssl pam kerberos openldap
|
|
|
|
];
|
2016-02-09 11:29:15 +01:00
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" "fortify" ];
|
2016-02-09 11:29:15 +01:00
|
|
|
|
2014-11-23 16:36:16 +01:00
|
|
|
configureFlags = [
|
2016-04-16 19:44:32 +02:00
|
|
|
"--with-ssl-include-dir=${openssl.dev}/include/openssl"
|
2015-04-27 06:18:07 +02:00
|
|
|
"--with-tcl-lib=${tcl.libPrefix}"
|
2016-07-17 13:58:06 +02:00
|
|
|
"--with-passfile=.pine-passfile"
|
2016-02-09 11:29:15 +01:00
|
|
|
];
|
|
|
|
|
2014-11-23 17:23:03 +01:00
|
|
|
preConfigure = ''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s"
|
|
|
|
'';
|
2016-02-09 11:29:15 +01:00
|
|
|
|
2014-11-23 16:36:16 +01:00
|
|
|
meta = {
|
2016-02-09 11:29:15 +01:00
|
|
|
description = "Console mail reader";
|
2014-11-23 16:36:16 +01:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
homepage = "https://www.washington.edu/alpine/";
|
|
|
|
};
|
|
|
|
}
|