Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.1 KiB
Nix

{
lib,
buildNpmPackage,
fetchFromGitHub,
electron,
}:
let
version = "1.2.3";
in
buildNpmPackage {
pname = "openfortivpn-webview";
inherit version;
src =
(fetchFromGitHub {
owner = "gm-vm";
repo = "openfortivpn-webview";
rev = "v${version}-electron";
hash = "sha256-jGDCFdqRfnYwUgVs3KO1pDr52JgkYVRHi2KvABaZFl4=";
})
+ "/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-NKGu9jZMc+gd4BV1PnF4ukCNkjdUpZIJlYJ7ZzO+5WI=";
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";
};
}