From 1ba8a1c58360d10afa3bfe8cdeecc199a08d3c7b Mon Sep 17 00:00:00 2001 From: Leon Riesebos <28567817+lriesebos@users.noreply.github.com> Date: Thu, 23 May 2024 21:34:37 -0400 Subject: [PATCH 1/2] maintainers: add lriesebos Signed-off-by: Leon Riesebos <28567817+lriesebos@users.noreply.github.com> --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5566ed09a27a4..11a4dfce0805e 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11603,6 +11603,11 @@ githubId = 639066; name = "Luke Rewega"; }; + lriesebos = { + name = "Leon Riesebos"; + github = "lriesebos"; + githubId = 28567817; + }; lromor = { email = "leonardo.romor@gmail.com"; github = "lromor"; From a45a079bbc278cd6579f553db1fbadc7a59e9474 Mon Sep 17 00:00:00 2001 From: Leon Riesebos <28567817+lriesebos@users.noreply.github.com> Date: Thu, 23 May 2024 21:35:34 -0400 Subject: [PATCH 2/2] 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 <28567817+lriesebos@users.noreply.github.com> --- .../op/openfortivpn-webview/package.nix | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/op/openfortivpn-webview/package.nix diff --git a/pkgs/by-name/op/openfortivpn-webview/package.nix b/pkgs/by-name/op/openfortivpn-webview/package.nix new file mode 100644 index 0000000000000..e0887c17d80db --- /dev/null +++ b/pkgs/by-name/op/openfortivpn-webview/package.nix @@ -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"; + }; +}