alpine: turn off fortify/format hardening

This commit is contained in:
Robin Gloster 2016-02-09 10:29:15 +00:00
parent 75f8122c2c
commit 37cdc16780

View File

@ -1,35 +1,37 @@
{stdenv, fetchurl, ncurses, tcl, openssl, pam, pkgconfig, gettext, kerberos {stdenv, fetchurl, ncurses, tcl, openssl, pam, pkgconfig, gettext, kerberos
, openldap , openldap
}: }:
let let
s = version = "2.00";
rec { baseName = "alpine";
version = "2.00"; in
stdenv.mkDerivation {
name = "${baseName}-${version}";
src = fetchurl {
url = "ftp://ftp.cac.washington.edu/alpine/alpine-${version}.tar.bz2"; url = "ftp://ftp.cac.washington.edu/alpine/alpine-${version}.tar.bz2";
sha256 = "19m2w21dqn55rhxbh5lr9qarc2fqa9wmpj204jx7a0zrb90bhpf8"; sha256 = "19m2w21dqn55rhxbh5lr9qarc2fqa9wmpj204jx7a0zrb90bhpf8";
baseName = "alpine";
name = "${baseName}-${version}";
}; };
buildInputs = [ buildInputs = [
ncurses tcl openssl pam kerberos openldap ncurses tcl openssl pam kerberos openldap
]; ];
in
stdenv.mkDerivation { hardening_format = false;
inherit (s) name version; hardening_fortify = false;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
configureFlags = [ configureFlags = [
"--with-ssl-include-dir=${openssl}/include/openssl" "--with-ssl-include-dir=${openssl}/include/openssl"
"--with-tcl-lib=${tcl.libPrefix}" "--with-tcl-lib=${tcl.libPrefix}"
]; ];
preConfigure = '' preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s" export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s"
''; '';
meta = { meta = {
inherit (s) version; description = "Console mail reader";
description = ''Console mail reader'';
license = stdenv.lib.licenses.asl20; license = stdenv.lib.licenses.asl20;
maintainers = [stdenv.lib.maintainers.raskin]; maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux; platforms = stdenv.lib.platforms.linux;