1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/applications/networking/mailreaders/alpine/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

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