diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 390dc96f2ade..566b70056df9 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -21751,6 +21751,12 @@ githubId = 8219659; name = "Siraphob Phipathananunth"; }; + SirBerg = { + email = "benno@boerg.co"; + github = "SirBerg"; + githubId = 87900036; + name = "Benno Rodehack"; + }; siriobalmelli = { email = "sirio@b-ad.ch"; github = "siriobalmelli"; diff --git a/pkgs/by-name/vo/volanta/package.nix b/pkgs/by-name/vo/volanta/package.nix new file mode 100644 index 000000000000..2a180cec1553 --- /dev/null +++ b/pkgs/by-name/vo/volanta/package.nix @@ -0,0 +1,39 @@ +{ + appimageTools, + fetchurl, + lib, + makeWrapper, +}: +let + pname = "volanta"; + version = "1.10.10"; + src = fetchurl { + url = "https://cdn.volanta.app/software/volanta-app/${version}-a7ebf1c7/volanta-${version}.AppImage"; + hash = "sha256-pdMPC3flJzguRYmS+xKiAXWQ4BKsD3N48S27djXDtuo="; + }; + appImageContents = appimageTools.extract { inherit pname version src; }; +in +appimageTools.wrapType2 rec { + inherit pname version src; + + nativeBuildInputs = [ makeWrapper ]; + + # Note: Volanta needs the env variable APPIMAGE=true to be set in order to work at all. + extraInstallCommands = '' + install -m 444 -D ${appImageContents}/volanta.desktop $out/share/applications/volanta.desktop + install -m 444 -D ${appImageContents}/volanta.png \ + $out/share/icons/hicolor/1024x1024/apps/volanta.png + substituteInPlace $out/share/applications/volanta.desktop \ + --replace-fail 'Exec=AppRun' 'Exec=env APPIMAGE=true volanta' + wrapProgram $out/bin/volanta \ + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" + ''; + meta = { + description = "Easy-to-use smart flight tracker that integrates all your flight data across all major flightsims"; + homepage = "https://volanta.app/"; + maintainers = with lib.maintainers; [ SirBerg ]; + mainProgram = "volanta"; + platforms = [ "x86_64-linux" ]; + license = lib.licenses.unfree; + }; +}