-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expresslrs-configurator: init at 1.7.2
Signed-off-by: Andreas <[email protected]>
- Loading branch information
Andreas
authored and
Andreas
committed
Nov 20, 2024
1 parent
2528d14
commit 916fdc0
Showing
2 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1926,6 +1926,12 @@ | |
githubId = 21687187; | ||
name = "Mirza Arnaut"; | ||
}; | ||
asamonik = { | ||
email = "[email protected]"; | ||
github = "asamonik"; | ||
githubId = 49288593; | ||
name = "Andreas"; | ||
}; | ||
asbachb = { | ||
email = "[email protected]"; | ||
matrix = "@asbachb:matrix.org"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
{ | ||
stdenv, | ||
fetchzip, | ||
autoPatchelfHook, | ||
lib, | ||
makeWrapper, | ||
electron_27, | ||
libgcc, | ||
libstdcxx5, | ||
musl, | ||
libxc, | ||
libxkbcommon, | ||
alsa-lib, | ||
at-spi2-core, | ||
gcc, | ||
nss, | ||
nspr, | ||
cups, | ||
libdrm, | ||
gtk3, | ||
pango, | ||
cairo, | ||
xorg, | ||
mesa, | ||
libglvnd, | ||
dbus, | ||
libpulseaudio, | ||
freetype, | ||
fontconfig, | ||
wayland, | ||
wayland-protocols, | ||
|
||
}: | ||
|
||
let | ||
electron = electron_27; | ||
in | ||
stdenv.mkDerivation rec { | ||
pname = "expresslrs-configurator"; | ||
version = "1.7.2"; | ||
|
||
src = fetchzip { | ||
url = "https://github.com/ExpressLRS/ExpressLRS-Configurator/releases/download/v${version}/expresslrs-configurator-${version}.zip"; | ||
stripRoot = false; | ||
sha256 = "sha256-pXmJ420HeJaMjAZCzlIriuFrTK5xabxTrSy3PDVisgU="; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
autoPatchelfHook | ||
makeWrapper | ||
]; | ||
|
||
buildInputs = [ | ||
gcc | ||
libgcc | ||
libstdcxx5 | ||
musl | ||
libxc | ||
libxkbcommon | ||
alsa-lib | ||
at-spi2-core | ||
gcc | ||
nss | ||
nspr | ||
cups | ||
libdrm | ||
gtk3 | ||
pango | ||
cairo | ||
xorg.libXcomposite | ||
xorg.libXdamage | ||
xorg.libXfixes | ||
xorg.libXrandr | ||
mesa | ||
libglvnd | ||
dbus | ||
libpulseaudio | ||
freetype | ||
fontconfig | ||
wayland | ||
wayland-protocols | ||
]; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin $out/share/expresslrs-configurator/ | ||
cp -r $src/{locales,resources}/* $out/share/expresslrs-configurator | ||
makeWrapper '${electron}/bin/electron' "$out/bin/expresslrs-configurator" \ | ||
--add-flags "$out/share/expresslrs-configurator/app.asar" \ | ||
--add-flags "--enable-logging --log-file=/tmp/electron-log.txt" \ | ||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto}}" | ||
''; | ||
|
||
meta = with lib; { | ||
description = "Cross-platform build & configuration tool for ExpressLRS"; | ||
homepage = "https://github.com/ExpressLRS/ExpressLRS-Configurator"; | ||
license = licenses.gpl3Plus; | ||
platforms = platforms.linux; | ||
maintainers = with maintainers; [ asamonik ]; | ||
}; | ||
} |