networkmanager-openconnect: add updateScript
This commit is contained in:
parent
dcfbe14f0e
commit
6c4bb91fca
1 changed files with 12 additions and 5 deletions
|
@ -1,14 +1,14 @@
|
|||
{ stdenv, fetchurl, openconnect, intltool, pkgconfig, networkmanager, libsecret
|
||||
, withGnome ? true, gnome3, procps, kmod }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||
let
|
||||
pname = "NetworkManager-openconnect";
|
||||
major = "1.2";
|
||||
version = "${major}.4";
|
||||
version = "1.2.4";
|
||||
in stdenv.mkDerivation rec {
|
||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${major}/${pname}-${version}.tar.xz";
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "15j98wwspv6mcmy91w30as5qc1bzsnhlk060xhjy4qrvd37y0xx1";
|
||||
};
|
||||
|
||||
|
@ -30,6 +30,13 @@ stdenv.mkDerivation rec {
|
|||
--replace "/sbin/modprobe" "${kmod}/bin/modprobe"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome3.updateScript {
|
||||
packageName = pname;
|
||||
attrPath = "networkmanager-openconnect";
|
||||
};
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "NetworkManager's OpenConnect plugin";
|
||||
inherit (networkmanager.meta) maintainers platforms;
|
||||
|
|
Loading…
Reference in a new issue