1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 09:02:46 +00:00
nixpkgs/pkgs/tools/networking/strongswan/default.nix
Vladimír Čunát adb831e8bc strongswan: -lgcc_s, fixes #4925
CC maint. @shlevy.
2014-11-11 07:42:00 +01:00

27 lines
754 B
Nix

{ stdenv, fetchurl, gmp, autoreconfHook, gettext, pkgconfig }:
stdenv.mkDerivation rec {
name = "strongswan-5.2.0";
src = fetchurl {
url = "http://download.strongswan.org/${name}.tar.bz2";
sha256 = "1ki6v9c54ykppqnj3prgh62na97yajnvnm2zr1gjxzv05syk035h";
};
patches = [ ./respect-path.patch ./no-hardcoded-sysconfdir.patch ];
buildInputs = [ gmp autoreconfHook gettext pkgconfig ];
configureFlags = [ "--enable-swanctl" "--enable-cmd" ];
NIX_LDFLAGS = "-lgcc_s" ;
meta = {
maintainers = [ stdenv.lib.maintainers.shlevy ];
description = "OpenSource IPsec-based VPN Solution";
homepage = https://www.strongswan.org;
license = stdenv.lib.licenses.gpl2Plus;
inherit (stdenv.gcc.clang.meta) platforms;
};
}