blob: 2c51355eb54f0830ee1ed8ea25958ddb3c300323 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{lib, stdenv, fetchurl, unzip, makeDesktopItem, copyDesktopItems, nwjs
, wrapGAppsHook, gsettings-desktop-schemas, gtk3 }:
stdenv.mkDerivation rec {
pname = "emuflight-configurator";
version = "0.4.1";
src = fetchurl {
url = "https://github.com/emuflight/EmuConfigurator/releases/download/${version}/emuflight-configurator_${version}_linux64.zip";
sha256 = "sha256-e4HNg5yr9V5LyT0hYP6gzw0tZm4dLidJg5MQtH3L3JI=";
};
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";
mainProgram = "emuflight-configurator";
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";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.gpl3Only;
maintainers = with maintainers; [ beezow ];
platforms = platforms.linux;
};
}
|