2014-09-19 21:12:11 +02:00
|
|
|
{ stdenv, fetchurl, gmp, autoreconfHook, gettext, pkgconfig }:
|
2014-09-16 20:10:37 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "strongswan-5.2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.strongswan.org/${name}.tar.bz2";
|
|
|
|
sha256 = "1ki6v9c54ykppqnj3prgh62na97yajnvnm2zr1gjxzv05syk035h";
|
|
|
|
};
|
|
|
|
|
2014-10-01 03:28:04 +02:00
|
|
|
patches = [ ./respect-path.patch ./no-hardcoded-sysconfdir.patch ];
|
2014-09-19 07:09:00 +02:00
|
|
|
|
2014-09-19 21:12:11 +02:00
|
|
|
buildInputs = [ gmp autoreconfHook gettext pkgconfig ];
|
2014-09-19 07:09:00 +02:00
|
|
|
|
2014-10-14 10:02:02 +02:00
|
|
|
configureFlags = [ "--enable-swanctl" "--enable-cmd" ];
|
2014-09-16 20:10:37 +02:00
|
|
|
|
2014-11-11 07:40:52 +01:00
|
|
|
NIX_LDFLAGS = "-lgcc_s" ;
|
|
|
|
|
2014-09-16 20:10:37 +02:00
|
|
|
meta = {
|
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
|
|
description = "OpenSource IPsec-based VPN Solution";
|
|
|
|
homepage = https://www.strongswan.org;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2014-10-10 15:48:34 +02:00
|
|
|
inherit (stdenv.gcc.gcc.meta) platforms;
|
2014-09-16 20:10:37 +02:00
|
|
|
};
|
|
|
|
}
|