waydroid-helper: sort

This commit is contained in:
mivorasu 2025-08-01 08:54:30 +08:00
parent 88df1b409f
commit 10cbc86a5c

View File

@ -1,33 +1,31 @@
{ {
lib, lib,
python3Packages,
fetchFromGitHub, fetchFromGitHub,
nix-update-script, appstream,
cmake,
desktop-file-utils, desktop-file-utils,
libadwaita, glib,
gobject-introspection,
meson, meson,
ninja, ninja,
pkg-config, pkg-config,
wrapGAppsHook4, wrapGAppsHook4,
libxml2,
python3Packages,
appstream,
glib,
cmake,
dbus,
systemd,
bash, bash,
bindfs, bindfs,
dbus,
e2fsprogs, e2fsprogs,
fakeroot, fakeroot,
fuse, fuse,
gobject-introspection, libadwaita,
libxml2,
systemd,
unzip, unzip,
nix-update-script,
}: }:
python3Packages.buildPythonApplication rec { let
pname = "waydroid-helper";
version = "0.2.3"; version = "0.2.3";
pyproject = false; # uses meson
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ayasa520"; owner = "ayasa520";
@ -35,6 +33,11 @@ python3Packages.buildPythonApplication rec {
tag = "v${version}"; tag = "v${version}";
hash = "sha256-QxtCxujf7S3YRx/4rRMecFBomP+9tqrIBdYhc3WQT20="; hash = "sha256-QxtCxujf7S3YRx/4rRMecFBomP+9tqrIBdYhc3WQT20=";
}; };
in
python3Packages.buildPythonApplication {
pname = "waydroid-helper";
inherit version src;
pyproject = false; # uses meson
postPatch = '' postPatch = ''
substituteInPlace dbus/meson.build \ substituteInPlace dbus/meson.build \
@ -45,39 +48,41 @@ python3Packages.buildPythonApplication rec {
--replace-fail ": systemd_user_unit_dir" ": '$out/lib/systemd/user'" --replace-fail ": systemd_user_unit_dir" ": '$out/lib/systemd/user'"
substituteInPlace systemd/{system/waydroid-mount,user/waydroid-monitor}.service \ substituteInPlace systemd/{system/waydroid-mount,user/waydroid-monitor}.service \
--replace-fail "/usr/bin/waydroid-helper" "$out/bin/waydroid-helper" --replace-fail "/usr/bin/waydroid-helper" "$out/bin/waydroid-helper"
# com.jaoushingan.WaydroidHelper.desktop: component-name-missing, description-first-para-too-short ''
# url-homepage-missing, desktop-app-launchable-omitted, content-rating-missing, developer-info-missing # com.jaoushingan.WaydroidHelper.desktop: component-name-missing, description-first-para-too-short
# url-homepage-missing, desktop-app-launchable-omitted, content-rating-missing, developer-info-missing
+ ''
sed -i '/test(/{N;/Validate appstream file/!b;:a;N;/)/!ba;d}' data/meson.build sed -i '/test(/{N;/Validate appstream file/!b;:a;N;/)/!ba;d}' data/meson.build
''; '';
nativeBuildInputs = [ nativeBuildInputs = [
appstream appstream
glib
cmake cmake
desktop-file-utils
glib
gobject-introspection
meson meson
ninja ninja
pkg-config pkg-config
wrapGAppsHook4 wrapGAppsHook4
desktop-file-utils
gobject-introspection
]; ];
buildInputs = [ buildInputs = [
libxml2
libadwaita
dbus
bash bash
dbus
libadwaita
libxml2
systemd systemd
]; ];
dontUseCmakeConfigure = true; dontUseCmakeConfigure = true;
dependencies = with python3Packages; [ dependencies = with python3Packages; [
pygobject3
httpx
pyyaml
aiofiles aiofiles
dbus-python dbus-python
httpx
pygobject3
pyyaml
]; ];
strictDeps = true; strictDeps = true;
@ -104,12 +109,12 @@ python3Packages.buildPythonApplication rec {
passthru.updateScript = nix-update-script { }; passthru.updateScript = nix-update-script { };
meta = { meta = {
changelog = "https://github.com/ayasa520/waydroid-helper/releases/tag/${src.tag}";
description = "User-friendly way to configure Waydroid and install extensions, including Magisk and ARM translation"; description = "User-friendly way to configure Waydroid and install extensions, including Magisk and ARM translation";
homepage = "https://github.com/ayasa520/waydroid-helper"; homepage = "https://github.com/ayasa520/waydroid-helper";
changelog = "https://github.com/ayasa520/waydroid-helper/releases/tag/${src.tag}";
mainProgram = "waydroid-helper";
platforms = lib.platforms.linux;
license = with lib.licenses; [ gpl3Plus ]; license = with lib.licenses; [ gpl3Plus ];
mainProgram = "waydroid-helper";
maintainers = with lib.maintainers; [ ]; maintainers = with lib.maintainers; [ ];
platforms = lib.platforms.linux;
}; };
} }