Skip to content

Commit

Permalink
expresslrs-configurator: init at 1.7.2
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas <[email protected]>
  • Loading branch information
Andreas authored and Andreas committed Nov 20, 2024
1 parent 2528d14 commit 916fdc0
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
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_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 ];
};
}

0 comments on commit 916fdc0

Please sign in to comment.