From 858d5255ee764ba7bca527f42ec6775fdebeabc0 Mon Sep 17 00:00:00 2001 From: emaryn Date: Fri, 23 May 2025 02:01:13 +0800 Subject: [PATCH] aurea: init at 1.6.1 --- pkgs/by-name/au/aurea/package.nix | 69 +++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 pkgs/by-name/au/aurea/package.nix diff --git a/pkgs/by-name/au/aurea/package.nix b/pkgs/by-name/au/aurea/package.nix new file mode 100644 index 000000000000..e901b4d1c466 --- /dev/null +++ b/pkgs/by-name/au/aurea/package.nix @@ -0,0 +1,69 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + meson, + ninja, + blueprint-compiler, + desktop-file-utils, + pkg-config, + wrapGAppsHook4, + libsoup_3, + glib-networking, + libadwaita, + nix-update-script, +}: + +python3Packages.buildPythonApplication rec { + pname = "aurea"; + version = "1.6.1"; + pyproject = false; # uses meson + + src = fetchFromGitHub { + owner = "CleoMenezesJr"; + repo = "Aurea"; + tag = version; + hash = "sha256-XoLqtuh4ZIeKo8xb1ccaK+9K3uGuQfZt9Fb6NeUDCjE="; + }; + + nativeBuildInputs = [ + meson + ninja + blueprint-compiler + pkg-config + wrapGAppsHook4 + desktop-file-utils + ]; + + buildInputs = [ + libadwaita + libsoup_3 + glib-networking + ]; + + dependencies = with python3Packages; [ + pygobject3 + pillow + ]; + + strictDeps = true; + + dontWrapGApps = true; + + makeWrapperArgs = [ "\${gappsWrapperArgs[@]}" ]; + + postInstallCheck = '' + mesonCheckPhase + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Flatpak metainfo banner previewer"; + homepage = "https://github.com/CleoMenezesJr/Aurea"; + mainProgram = "aurea"; + platforms = lib.platforms.linux; + license = with lib.licenses; [ gpl3Plus ]; + maintainers = with lib.maintainers; [ emaryn ]; + }; +}