2021-06-21 04:46:38 +02:00
|
|
|
{lib, stdenv, fetchurl, unzip, makeDesktopItem, copyDesktopItems, nwjs
|
|
|
|
, wrapGAppsHook, gsettings-desktop-schemas, gtk3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "emuflight-configurator";
|
2022-07-30 06:44:30 +02:00
|
|
|
version = "0.4.1";
|
2021-06-21 04:46:38 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/emuflight/EmuConfigurator/releases/download/${version}/emuflight-configurator_${version}_linux64.zip";
|
2022-07-30 06:44:30 +02:00
|
|
|
sha256 = "sha256-e4HNg5yr9V5LyT0hYP6gzw0tZm4dLidJg5MQtH3L3JI=";
|
2021-06-21 04:46:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ wrapGAppsHook unzip copyDesktopItems ];
|
|
|
|
|
|
|
|
buildInputs = [ gsettings-desktop-schemas gtk3 ];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-06-23 11:13:00 +02:00
|
|
|
mkdir -p $out/bin $out/share/${pname}
|
2021-06-21 04:46:38 +02:00
|
|
|
|
|
|
|
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";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "emuflight-configurator";
|
2021-06-21 04:46:38 +02:00
|
|
|
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";
|
2022-06-05 00:19:25 +02:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
|
2021-06-21 04:46:38 +02:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ beezow ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|