gnome.networkmanager-openvpn: 1.8.16 → 1.8.18
https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/-/compare/1.8.16...1.8.18
This commit is contained in:
parent
1947aeb168
commit
a8df2da06e
1 changed files with 42 additions and 11 deletions
|
@ -1,15 +1,31 @@
|
||||||
{ lib, stdenv, fetchurl, substituteAll, openvpn, intltool, libxml2, pkg-config, file, networkmanager, libsecret
|
{ stdenv
|
||||||
, glib, gtk3, withGnome ? true, gnome, kmod, libnma }:
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, substituteAll
|
||||||
|
, openvpn
|
||||||
|
, intltool
|
||||||
|
, libxml2
|
||||||
|
, pkg-config
|
||||||
|
, file
|
||||||
|
, networkmanager
|
||||||
|
, libsecret
|
||||||
|
, glib
|
||||||
|
, gtk3
|
||||||
|
, gtk4
|
||||||
|
, withGnome ? true
|
||||||
|
, gnome
|
||||||
|
, kmod
|
||||||
|
, libnma
|
||||||
|
, libnma-gtk4
|
||||||
|
}:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
pname = "NetworkManager-openvpn";
|
pname = "NetworkManager-openvpn";
|
||||||
version = "1.8.16";
|
version = "1.8.18";
|
||||||
in stdenv.mkDerivation {
|
|
||||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
url = "mirror://gnome/sources/NetworkManager-openvpn/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||||
sha256 = "iSDeCceuXx9SDIP4REVduPrsMUJzUCaP4t2VuGD5H7U=";
|
sha256 = "U9+wrPZEeK3HKAdPFi9i5gv/YqYFvYl+uIsmfnBXkno=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -19,13 +35,28 @@ in stdenv.mkDerivation {
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [ openvpn networkmanager glib ]
|
nativeBuildInputs = [
|
||||||
++ lib.optionals withGnome [ gtk3 libsecret libnma ];
|
intltool
|
||||||
|
pkg-config
|
||||||
|
file
|
||||||
|
libxml2
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ intltool pkg-config file libxml2 ];
|
buildInputs = [
|
||||||
|
openvpn
|
||||||
|
networkmanager
|
||||||
|
glib
|
||||||
|
] ++ lib.optionals withGnome [
|
||||||
|
gtk3
|
||||||
|
gtk4
|
||||||
|
libsecret
|
||||||
|
libnma
|
||||||
|
libnma-gtk4
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||||
|
"--with-gtk4=${if withGnome then "yes" else "no"}"
|
||||||
"--localstatedir=/" # needed for the management socket under /run/NetworkManager
|
"--localstatedir=/" # needed for the management socket under /run/NetworkManager
|
||||||
"--enable-absolute-paths"
|
"--enable-absolute-paths"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue