Skip to content

Commit d8d3c38

Browse files
openfortivpn-webview: init at 1.2.0 (NixOS#302409)
2 parents 2c981cb + a45a079 commit d8d3c38

File tree

2 files changed

+47
-0
lines changed

2 files changed

+47
-0
lines changed

maintainers/maintainer-list.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13180,6 +13180,11 @@
1318013180
githubId = 639066;
1318113181
name = "Luke Rewega";
1318213182
};
13183+
lriesebos = {
13184+
name = "Leon Riesebos";
13185+
github = "lriesebos";
13186+
githubId = 28567817;
13187+
};
1318313188
lromor = {
1318413189
email = "[email protected]";
1318513190
github = "lromor";
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)