mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
emuflight-configurator: init at 0.3.5
This commit is contained in:
parent
cf1088a147
commit
4eb4579833
@ -0,0 +1,53 @@
|
|||||||
|
{lib, stdenv, fetchurl, unzip, makeDesktopItem, copyDesktopItems, nwjs
|
||||||
|
, wrapGAppsHook, gsettings-desktop-schemas, gtk3 }:
|
||||||
|
|
||||||
|
let
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "emuflight-configurator";
|
||||||
|
version = "0.3.5";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/emuflight/EmuConfigurator/releases/download/${version}/emuflight-configurator_${version}_linux64.zip";
|
||||||
|
sha256 = "d55bdc52cf93d58c728ccb296ef912a5fc0f42c57ed95f3ded5f85d1c10838c4";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ wrapGAppsHook unzip copyDesktopItems ];
|
||||||
|
|
||||||
|
buildInputs = [ gsettings-desktop-schemas gtk3 ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin \
|
||||||
|
$out/share/${pname}
|
||||||
|
|
||||||
|
cp -r . $out/share/${pname}/
|
||||||
|
install -m 444 -D icon/emu_icon_128.png $out/share/icons/hicolor/128x128/apps/${pname}.png
|
||||||
|
|
||||||
|
makeWrapper ${nwjs}/bin/nw $out/bin/${pname} --add-flags $out/share/${pname}
|
||||||
|
'';
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = pname;
|
||||||
|
exec = pname;
|
||||||
|
icon = pname;
|
||||||
|
comment = "Emuflight configuration tool";
|
||||||
|
desktopName = "Emuflight Configurator";
|
||||||
|
genericName = "Flight controller configuration tool";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "The Emuflight flight control system configuration tool";
|
||||||
|
longDescription = ''
|
||||||
|
A crossplatform configuration tool for the Emuflight flight control system.
|
||||||
|
Various types of aircraft are supported by the tool and by Emuflight, e.g.
|
||||||
|
quadcopters, hexacopters, octocopters and fixed-wing aircraft.
|
||||||
|
The application allows you to configure the Emuflight software running on any supported Emuflight target.
|
||||||
|
'';
|
||||||
|
homepage = "https://github.com/emuflight/EmuConfigurator";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [ beezow ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -30355,6 +30355,8 @@ in
|
|||||||
|
|
||||||
betaflight-configurator = callPackage ../applications/science/robotics/betaflight-configurator { };
|
betaflight-configurator = callPackage ../applications/science/robotics/betaflight-configurator { };
|
||||||
|
|
||||||
|
emuflight-configurator = callPackage ../applications/science/robotics/emuflight-configurator { };
|
||||||
|
|
||||||
mission-planner = callPackage ../applications/science/robotics/mission-planner { };
|
mission-planner = callPackage ../applications/science/robotics/mission-planner { };
|
||||||
|
|
||||||
### MISC
|
### MISC
|
||||||
|
Loading…
Reference in New Issue
Block a user