2014-09-16 19:10:37 +01:00
|
|
|
{ stdenv, fetchurl, gmp }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "strongswan-5.2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.strongswan.org/${name}.tar.bz2";
|
|
|
|
sha256 = "1ki6v9c54ykppqnj3prgh62na97yajnvnm2zr1gjxzv05syk035h";
|
|
|
|
};
|
|
|
|
|
2014-09-19 06:09:00 +01:00
|
|
|
patches = [ ./respect-path.patch ];
|
|
|
|
|
|
|
|
# --sysconfdir=/etc makes the build try to write to /etc...
|
|
|
|
NIX_CFLAGS_COMPILE = "-DIPSEC_CONFDIR=\"/etc\"";
|
|
|
|
|
2014-09-16 19:10:37 +01:00
|
|
|
buildInputs = [ gmp ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
maintainers = [ stdenv.lib.maintainers.shlevy ];
|
|
|
|
description = "OpenSource IPsec-based VPN Solution";
|
|
|
|
homepage = https://www.strongswan.org;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2014-09-18 03:07:58 +01:00
|
|
|
inherit (stdenv.gcc.clang.meta) platforms;
|
2014-09-16 19:10:37 +01:00
|
|
|
};
|
|
|
|
}
|