chore: nix fmt

This commit is contained in:
514fpv 2025-01-13 11:52:09 +08:00
parent a80bd4ed3b
commit 7266fff06e
Signed by: koishi
SSH key fingerprint: SHA256:axz0uIzzY+5W19i7QOUuiw5LSqhKfCBKPf3L4xFRxLw
128 changed files with 3402 additions and 2013 deletions

View file

@ -1,8 +1,11 @@
{ lib
, fetchzip
, makeDesktopItem
, imagemagick
, buildFHSEnv }: let
{
lib,
fetchzip,
makeDesktopItem,
imagemagick,
buildFHSEnv,
}:
let
name = "ExpressLRS-Configurator";
pname = "expresslrs-configurator";
version = "1.7.2";
@ -22,24 +25,70 @@
desktopName = "ExpressLRS Configurator";
genericName = "radio link configuration & build tool";
};
in buildFHSEnv {
in
buildFHSEnv {
inherit pname version;
# copied from chromium deps
targetPkgs = pkgs: (with pkgs; [
glib fontconfig freetype pango cairo xorg.libX11 xorg.libXi atk nss nspr
xorg.libXcursor xorg.libXext xorg.libXfixes xorg.libXrender
xorg.libXScrnSaver xorg.libXcomposite xorg.libxcb
alsa-lib xorg.libXdamage xorg.libXtst xorg.libXrandr xorg.libxshmfence expat cups
dbus gdk-pixbuf gcc-unwrapped.lib
systemd
libexif pciutils
liberation_ttf curl util-linux wget
flac harfbuzz icu libpng libopus snappy speechd
bzip2 libcap at-spi2-atk at-spi2-core
libkrb5 libdrm libglvnd mesa coreutils
libxkbcommon pipewire wayland
libva gtk3 gtk4
]);
targetPkgs =
pkgs:
(with pkgs; [
glib
fontconfig
freetype
pango
cairo
xorg.libX11
xorg.libXi
atk
nss
nspr
xorg.libXcursor
xorg.libXext
xorg.libXfixes
xorg.libXrender
xorg.libXScrnSaver
xorg.libXcomposite
xorg.libxcb
alsa-lib
xorg.libXdamage
xorg.libXtst
xorg.libXrandr
xorg.libxshmfence
expat
cups
dbus
gdk-pixbuf
gcc-unwrapped.lib
systemd
libexif
pciutils
liberation_ttf
curl
util-linux
wget
flac
harfbuzz
icu
libpng
libopus
snappy
speechd
bzip2
libcap
at-spi2-atk
at-spi2-core
libkrb5
libdrm
libglvnd
mesa
coreutils
libxkbcommon
pipewire
wayland
libva
gtk3
gtk4
]);
extraInstallCommands = ''
mkdir -p $out/share
${imagemagick}/bin/convert ${dist}/resources/assets/icon.png -resize 128x128 icon-128.png