22 stdenv.mkDerivation rec {
23 name = "${pname}${lib.optionalString withGnome "-gnome"}-${version}";
24 pname = "NetworkManager-l2tp";
27 src = fetchFromGitHub {
29 repo = "network-manager-l2tp";
31 hash = "sha256-78TOx3UnAF02UfZ7cWhPKv9bhJCq5UmAMrwd5xUnVrg=";
36 src = ./fix-paths.patch;
37 inherit strongswan xl2tpd;
52 ] ++ lib.optionals withGnome [
61 "--with-gnome=${if withGnome then "yes" else "no"}"
62 "--with-gtk4=${if withGnome then "yes" else "no"}"
63 "--localstatedir=/var"
64 "--enable-absolute-paths"
67 enableParallelBuilding = true;
70 networkManagerPlugin = "VPN/nm-l2tp-service.name";
74 description = "L2TP plugin for NetworkManager";
75 inherit (networkmanager.meta) platforms;
76 homepage = "https://github.com/nm-l2tp/network-manager-l2tp";
77 license = licenses.gpl2Plus;
78 maintainers = with maintainers; [ abbradar obadz ];