Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

expresslrs-configurator: init at 1.7.2 #337022

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
101 changes: 101 additions & 0 deletions pkgs/by-name/ex/expresslrs-configurator/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
{
stdenv,
fetchzip,
autoPatchelfHook,
lib,
makeWrapper,
electron_33,
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_33;
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 ];
};
}