[Backport release-24.05] lx-music-desktop: 2.8.0 -> 2.9.0 (#337947)

This commit is contained in:
Emily 2024-08-29 01:54:45 +01:00 committed by GitHub
commit 8cf9fd5242
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,31 +6,31 @@
, dpkg
, libGL
, systemd
, electron_28
, electron_30
, commandLineArgs ? ""
}:
let
pname = "lx-music-desktop";
version = "2.8.0";
version = "2.9.0";
buildUrl = version: arch: "https://github.com/lyswhut/lx-music-desktop/releases/download/v${version}/lx-music-desktop_${version}_${arch}.deb";
srcs = {
x86_64-linux = fetchurl {
url = buildUrl version "amd64";
hash = "sha256-Kt/foI7NrXV+Ex2DxLRyP3bVFw0Bx4TLuMyBMZD0bDw=";
hash = "sha256-krjC3vAwTMzlWJJIuJmYzFtN/Z/IINnzooUtlONeUM0=";
};
aarch64-linux = fetchurl {
url = buildUrl version "arm64";
hash = "sha256-4X4fXb2V/FigArcIgpgkNBa2+mOemPOx/HkxPlx//gw=";
hash = "sha256-734hTi/vgSrLAks+CV1vxrrZfSShnpExlO0JWUc4oUE=";
};
armv7l-linux = fetchurl {
url = buildUrl version "armv7l";
hash = "sha256-uWEQYOT4wxg6HWoL18mEpWF8pONl5Bwf/bnoN4X+A7c=";
hash = "sha256-e4Elipw7MzO+3XmmGlZfLDFgSph0by5Xy6FtYCie/38=";
};
};
@ -68,7 +68,7 @@ stdenv.mkDerivation {
'';
postFixup = ''
makeWrapper ${electron_28}/bin/electron $out/bin/lx-music-desktop \
makeWrapper ${electron_30}/bin/electron $out/bin/lx-music-desktop \
--add-flags $out/opt/lx-music-desktop/resources/app.asar \
--prefix LD_LIBRARY_PATH : "${runtimeLibs}" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \