volanta: init at 1.10.10 (#385206)

authored by Sandro and committed by GitHub 96011017 312c9443

+45
+6
maintainers/maintainer-list.nix
··· 21751 21751 githubId = 8219659; 21752 21752 name = "Siraphob Phipathananunth"; 21753 21753 }; 21754 + SirBerg = { 21755 + email = "benno@boerg.co"; 21756 + github = "SirBerg"; 21757 + githubId = 87900036; 21758 + name = "Benno Rodehack"; 21759 + }; 21754 21760 siriobalmelli = { 21755 21761 email = "sirio@b-ad.ch"; 21756 21762 github = "siriobalmelli";
+39
pkgs/by-name/vo/volanta/package.nix
··· 1 + { 2 + appimageTools, 3 + fetchurl, 4 + lib, 5 + makeWrapper, 6 + }: 7 + let 8 + pname = "volanta"; 9 + version = "1.10.10"; 10 + src = fetchurl { 11 + url = "https://cdn.volanta.app/software/volanta-app/${version}-a7ebf1c7/volanta-${version}.AppImage"; 12 + hash = "sha256-pdMPC3flJzguRYmS+xKiAXWQ4BKsD3N48S27djXDtuo="; 13 + }; 14 + appImageContents = appimageTools.extract { inherit pname version src; }; 15 + in 16 + appimageTools.wrapType2 rec { 17 + inherit pname version src; 18 + 19 + nativeBuildInputs = [ makeWrapper ]; 20 + 21 + # Note: Volanta needs the env variable APPIMAGE=true to be set in order to work at all. 22 + extraInstallCommands = '' 23 + install -m 444 -D ${appImageContents}/volanta.desktop $out/share/applications/volanta.desktop 24 + install -m 444 -D ${appImageContents}/volanta.png \ 25 + $out/share/icons/hicolor/1024x1024/apps/volanta.png 26 + substituteInPlace $out/share/applications/volanta.desktop \ 27 + --replace-fail 'Exec=AppRun' 'Exec=env APPIMAGE=true volanta' 28 + wrapProgram $out/bin/volanta \ 29 + --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" 30 + ''; 31 + meta = { 32 + description = "Easy-to-use smart flight tracker that integrates all your flight data across all major flightsims"; 33 + homepage = "https://volanta.app/"; 34 + maintainers = with lib.maintainers; [ SirBerg ]; 35 + mainProgram = "volanta"; 36 + platforms = [ "x86_64-linux" ]; 37 + license = lib.licenses.unfree; 38 + }; 39 + }