-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
openfortivpn-webview: init at 1.2.0 (#302409)
- Loading branch information
Showing
2 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13180,6 +13180,11 @@ | |
githubId = 639066; | ||
name = "Luke Rewega"; | ||
}; | ||
lriesebos = { | ||
name = "Leon Riesebos"; | ||
github = "lriesebos"; | ||
githubId = 28567817; | ||
}; | ||
lromor = { | ||
email = "[email protected]"; | ||
github = "lromor"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
lib, | ||
buildNpmPackage, | ||
fetchFromGitHub, | ||
electron, | ||
}: | ||
|
||
let | ||
version = "1.2.0"; | ||
in | ||
buildNpmPackage { | ||
pname = "openfortivpn-webview"; | ||
inherit version; | ||
src = | ||
(fetchFromGitHub { | ||
owner = "gm-vm"; | ||
repo = "openfortivpn-webview"; | ||
rev = "v${version}-electron"; | ||
hash = "sha256-HheqDjlWxHJS0+OEhRTwANs9dyz3lhhCmWh+YH4itOk="; | ||
}) | ||
+ "/openfortivpn-webview-electron"; | ||
|
||
installPhase = '' | ||
runHook preInstall | ||
npmInstallHook | ||
makeWrapper ${lib.getExe electron} $out/bin/openfortivpn-webview --add-flags $out/lib/node_modules/openfortivpn-webview | ||
runHook postInstall | ||
''; | ||
|
||
npmDepsHash = "sha256-Vf8R0+RXHlXwPOnPENw8ooxIXT3kSppQmB2yk5TWEwg="; | ||
dontNpmBuild = true; | ||
env.ELECTRON_SKIP_BINARY_DOWNLOAD = "1"; | ||
|
||
meta = { | ||
description = "Application to perform the SAML single sing-on and easily retrieve the SVPNCOOKIE needed by openfortivpn"; | ||
homepage = "https://github.com/gm-vm/openfortivpn-webview"; | ||
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ lriesebos ]; | ||
platforms = with lib.platforms; linux ++ darwin; | ||
mainProgram = "openfortivpn-webview"; | ||
}; | ||
} |