Skip to content

Commit

Permalink
Enable cross compiling of network manager plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
prinzdezibel committed Dec 9, 2024
1 parent 36f25b0 commit 971d7ef
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkgs/by-name/ne/networkmanager-fortisslvpn/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ stdenv.mkDerivation rec {
gettext
pkg-config
file
glib
];

buildInputs = [
Expand Down
3 changes: 3 additions & 0 deletions pkgs/by-name/ne/networkmanager-iodine/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ stdenv.mkDerivation {
libnma
];

# configure.ac:53: warning: macro 'AM_GLIB_GNU_GETTEXT' not found in library
strictDeps = false;

configureFlags = [
"--with-gnome=${if withGnome then "yes" else "no"}"
"--localstatedir=/" # needed for the management socket under /run/NetworkManager
Expand Down
6 changes: 4 additions & 2 deletions pkgs/by-name/op/openfortivpn/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
, openssl
, ppp
, systemd
, glib
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
, withPpp ? stdenv.hostPlatform.isLinux
}:
Expand All @@ -27,7 +28,7 @@ stdenv.mkDerivation rec {
--replace '$(DESTDIR)$(confdir)' /tmp
'';

nativeBuildInputs = [ autoreconfHook pkg-config ];
nativeBuildInputs = [ autoreconfHook pkg-config glib ];

buildInputs = [
openssl
Expand All @@ -39,7 +40,8 @@ stdenv.mkDerivation rec {
"--sysconfdir=/etc"
]
++ lib.optional withSystemd "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
++ lib.optional withPpp "--with-pppd=${ppp}/bin/pppd";
++ lib.optional withPpp "--with-pppd=${ppp}/bin/pppd"
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--disable-proc";

enableParallelBuilding = true;

Expand Down

0 comments on commit 971d7ef

Please sign in to comment.