diff options
author | Chloe Brown <chloe.brown.00@outlook.com> | 2024-09-09 16:10:04 +0100 |
---|---|---|
committer | Chloe Brown <chloe.brown.00@outlook.com> | 2024-09-09 16:10:04 +0100 |
commit | 774cc075408062d66976a270e74633deaf4ab657 (patch) | |
tree | 94c0bbb1fc2ab23695c8ce74d996b45ff7642059 | |
parent | 28f0dc8b2b6a0a65c2cb4eae399ab7dca68a3bf8 (diff) |
network-manager-l2tp: match other nm plugins
-rw-r--r-- | yellowsquid/packages/network.scm | 58 |
1 files changed, 41 insertions, 17 deletions
diff --git a/yellowsquid/packages/network.scm b/yellowsquid/packages/network.scm index 577b91e..f377c31 100644 --- a/yellowsquid/packages/network.scm +++ b/yellowsquid/packages/network.scm @@ -4,12 +4,15 @@ #:use-module (gnu packages glib) #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) + #:use-module (gnu packages linux) #:use-module (gnu packages nss) #:use-module (gnu packages pkg-config) #:use-module (gnu packages samba) #:use-module (gnu packages tls) #:use-module (gnu packages vpn) + #:use-module (gnu packages xml) #:use-module (guix build-system gnu) + #:use-module (guix gexp) #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix license:) @@ -33,23 +36,44 @@ (sha256 (base32 "1f2n4wayf7dw6a04krdaj225pzra9xl72yzna4v5s017fp3wxi7g")))) (build-system gnu-build-system) - (native-inputs (list autoconf - automake - gettext-minimal - (list glib "bin") - gobject-introspection - libtool - pkg-config)) - (inputs (list gettext-minimal - gtk+ - libnma - libsecret - network-manager - nss - openssl - ppp - strongswan - xl2tpd)) + (arguments + (list + #:configure-flags #~(list "--enable-absolute-paths" + "--localstatedir=/var" + "--with-gtk4=yes") + #:phases + #~(modify-phases %standard-phases + (add-after 'configure 'patch-path + (lambda* (#:key inputs #:allow-other-keys #:rest args) + (let* ((modprobe (search-input-file inputs "/bin/modprobe"))) + (for-each + (lambda (file) + (substitute* file + (("/sbin/modprobe") modprobe))) + '("src/nm-l2tp-service.c")))))))) + (native-inputs + (list autoconf + automake + (list glib "bin") + gobject-introspection + (list gtk "bin") + intltool + libtool + libxml2 + pkg-config)) + (inputs + (list gettext-minimal + gtk + gtk+ + kmod + libnma + libsecret + network-manager + nss + openssl + ppp + strongswan + xl2tpd)) (synopsis "L2TP plugin of NetworkManager") (description "This extension of NetworkManager allows it to take car of connections |