Skip to content

Commit

Permalink
networkmanager-l2tp: 1.2.10 -> 1.2.12
Browse files Browse the repository at this point in the history
Same patchups but moved to new file.
  • Loading branch information
dtzWill authored and obadz committed Apr 2, 2019
1 parent 6955582 commit cdf96e8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
7 changes: 4 additions & 3 deletions pkgs/tools/networking/network-manager/l2tp/default.nix
@@ -1,17 +1,18 @@
{ stdenv, substituteAll, fetchFromGitHub, autoreconfHook, libtool, intltool, pkgconfig
, file, findutils
, gtk3, networkmanager, ppp, xl2tpd, strongswan, libsecret
, withGnome ? true, gnome3, networkmanagerapplet }:

stdenv.mkDerivation rec {
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
pname = "NetworkManager-l2tp";
version = "1.2.10";
version = "1.2.12";

src = fetchFromGitHub {
owner = "nm-l2tp";
repo = "network-manager-l2tp";
rev = "${version}";
sha256 = "1vm004nj2n5abpywr7ji6r28scf7xs45zw4rqrm8jn7mysf96h0x";
sha256 = "0cq07kvlm98s8a7l4a3zmqnif8x3307kv7n645zx3f1r7x72b8m4";
};

patches = [
Expand All @@ -24,7 +25,7 @@ stdenv.mkDerivation rec {
buildInputs = [ networkmanager ppp ]
++ stdenv.lib.optionals withGnome [ gtk3 libsecret networkmanagerapplet ];

nativeBuildInputs = [ autoreconfHook libtool intltool pkgconfig ];
nativeBuildInputs = [ autoreconfHook libtool intltool pkgconfig file findutils ];

preConfigure = ''
intltoolize -f
Expand Down
10 changes: 6 additions & 4 deletions pkgs/tools/networking/network-manager/l2tp/fix-paths.patch
@@ -1,6 +1,8 @@
--- a/src/nm-l2tp-service.c
+++ b/src/nm-l2tp-service.c
@@ -480,7 +480,7 @@
diff --git a/shared/utils.c b/shared/utils.c
index c978a1f..d2c36cd 100644
--- a/shared/utils.c
+++ b/shared/utils.c
@@ -52,7 +52,7 @@ nm_find_ipsec (void)
{
static const char *ipsec_binary_paths[] =
{
Expand All @@ -9,7 +11,7 @@
"/usr/sbin/ipsec",
"/usr/local/sbin/ipsec",
"/sbin/strongswan",
@@ -505,7 +505,7 @@
@@ -77,7 +77,7 @@ nm_find_l2tpd (void)
{
static const char *l2tp_binary_paths[] =
{
Expand Down

0 comments on commit cdf96e8

Please sign in to comment.