From 2b57884e3ea14abcf206efb8be1bca83f083230e Mon Sep 17 00:00:00 2001 From: tilcreator Date: Thu, 25 Nov 2021 15:09:37 +0100 Subject: [PATCH 1/2] maintainers: add tilcreator --- maintainers/maintainer-list.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 3cb4c652e180..c17932d8ceb6 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -11613,6 +11613,13 @@ githubId = 1618946; name = "Tiago Castro"; }; + tilcreator = { + name = "Tilman Jackel"; + email = "contact.nixos@tc-j.de"; + matrix = "@tilcreator:matrix.org"; + github = "TilCreator"; + githubId = 18621411; + }; tilpner = { email = "till@hoeppner.ws"; github = "tilpner"; From 5989d544011c73a9e57768ecee7407caafc5d45f Mon Sep 17 00:00:00 2001 From: tilcreator Date: Tue, 30 Nov 2021 15:11:55 +0100 Subject: [PATCH 2/2] inav-configurator: init at 3.0.2 --- .../robotics/inav-configurator/default.nix | 57 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 59 insertions(+) create mode 100644 pkgs/applications/science/robotics/inav-configurator/default.nix diff --git a/pkgs/applications/science/robotics/inav-configurator/default.nix b/pkgs/applications/science/robotics/inav-configurator/default.nix new file mode 100644 index 000000000000..40914a8ac1a5 --- /dev/null +++ b/pkgs/applications/science/robotics/inav-configurator/default.nix @@ -0,0 +1,57 @@ +{ lib, stdenv, fetchurl, makeDesktopItem, copyDesktopItems, nwjs, wrapGAppsHook, gsettings-desktop-schemas, gtk3 }: + +stdenv.mkDerivation rec { + pname = "inav-configurator"; + version = "3.0.2"; + + src = fetchurl { + url = "https://github.com/iNavFlight/inav-configurator/releases/download/${version}/INAV-Configurator_linux64_${version}.tar.gz"; + sha256 = "0v6dcg634wpp9q4ya3mj00j3pg25g62aq209iq2dsvj0a03afbp2"; + }; + + icon = fetchurl { + url = "https://raw.githubusercontent.com/iNavFlight/inav-configurator/bf3fc89e6df51ecb83a386cd000eebf16859879e/images/inav_icon_128.png"; + sha256 = "1i844dzzc5s5cr4vfpi6k2kdn8jiqq2n6c0fjqvsp4wdidwjahzw"; + }; + + nativeBuildInputs = [ copyDesktopItems wrapGAppsHook ]; + + buildInputs = [ gsettings-desktop-schemas gtk3 ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/bin \ + $out/opt/${pname} + + cp -r inav-configurator $out/opt/inav-configurator/ + install -m 444 -D $icon $out/share/icons/hicolor/128x128/apps/${pname}.png + + chmod +x $out/opt/inav-configurator/inav-configurator + makeWrapper ${nwjs}/bin/nw $out/bin/${pname} --add-flags $out/opt/inav-configurator/inav-configurator + + runHook postInstall + ''; + + desktopItems = makeDesktopItem { + name = pname; + exec = pname; + icon = pname; + comment = "iNavFlight configuration tool"; + desktopName = "iNav Configurator"; + genericName = "Flight controller configuration tool"; + }; + + meta = with lib; { + description = "The iNav flight control system configuration tool"; + longDescription = '' + A crossplatform configuration tool for the iNav flight control system. + Various types of aircraft are supported by the tool and by iNav, e.g. + quadcopters, hexacopters, octocopters and fixed-wing aircraft. + ''; + homepage = "https://github.com/iNavFlight/inav/wiki"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ tilcreator wucke13 ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 24b91291488a..9d8412cf27cc 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32025,6 +32025,8 @@ with pkgs; emuflight-configurator = callPackage ../applications/science/robotics/emuflight-configurator { }; + inav-configurator = callPackage ../applications/science/robotics/inav-configurator { }; + mission-planner = callPackage ../applications/science/robotics/mission-planner { }; ### MISC