Skip to content

Commit a45a079

Browse files
committed
openfortivpn-webview: init at 1.2.0
Release version v1.2.0-electron Added the new `--trusted-cert` option to bypass certificate errors. Signed-off-by: Leon Riesebos <[email protected]>
1 parent 1ba8a1c commit a45a079

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
lib,
3+
buildNpmPackage,
4+
fetchFromGitHub,
5+
electron,
6+
}:
7+
8+
let
9+
version = "1.2.0";
10+
in
11+
buildNpmPackage {
12+
pname = "openfortivpn-webview";
13+
inherit version;
14+
src =
15+
(fetchFromGitHub {
16+
owner = "gm-vm";
17+
repo = "openfortivpn-webview";
18+
rev = "v${version}-electron";
19+
hash = "sha256-HheqDjlWxHJS0+OEhRTwANs9dyz3lhhCmWh+YH4itOk=";
20+
})
21+
+ "/openfortivpn-webview-electron";
22+
23+
installPhase = ''
24+
runHook preInstall
25+
npmInstallHook
26+
makeWrapper ${lib.getExe electron} $out/bin/openfortivpn-webview --add-flags $out/lib/node_modules/openfortivpn-webview
27+
runHook postInstall
28+
'';
29+
30+
npmDepsHash = "sha256-Vf8R0+RXHlXwPOnPENw8ooxIXT3kSppQmB2yk5TWEwg=";
31+
dontNpmBuild = true;
32+
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1";
33+
34+
meta = {
35+
description = "Application to perform the SAML single sing-on and easily retrieve the SVPNCOOKIE needed by openfortivpn";
36+
homepage = "https://github.com/gm-vm/openfortivpn-webview";
37+
license = lib.licenses.mit;
38+
maintainers = with lib.maintainers; [ lriesebos ];
39+
platforms = with lib.platforms; linux ++ darwin;
40+
mainProgram = "openfortivpn-webview";
41+
};
42+
}

0 commit comments

Comments
 (0)