From 504a78dcc7900aaf43aaf1c8930d468baad21874 Mon Sep 17 00:00:00 2001 From: aleksana Date: Mon, 17 Jun 2024 23:03:13 +0800 Subject: [PATCH] exhibit: init at 1.2.0 --- pkgs/by-name/ex/exhibit/package.nix | 59 +++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 pkgs/by-name/ex/exhibit/package.nix diff --git a/pkgs/by-name/ex/exhibit/package.nix b/pkgs/by-name/ex/exhibit/package.nix new file mode 100644 index 000000000000..79b0f4742ea4 --- /dev/null +++ b/pkgs/by-name/ex/exhibit/package.nix @@ -0,0 +1,59 @@ +{ + lib, + python3Packages, + fetchFromGitHub, + meson, + ninja, + pkg-config, + gobject-introspection, + wrapGAppsHook4, + desktop-file-utils, + libadwaita, +}: + +python3Packages.buildPythonApplication rec { + pname = "exhibit"; + version = "1.2.0"; + pyproject = false; # Built with meson + + src = fetchFromGitHub { + owner = "Nokse22"; + repo = "Exhibit"; + rev = "v${version}"; + hash = "sha256-yNS6q7XbWda2+so9QRS/c4uYaVPo7b4JCite5nzc3Eo="; + }; + + nativeBuildInputs = [ + meson + ninja + pkg-config + gobject-introspection + wrapGAppsHook4 + desktop-file-utils + ]; + + buildInputs = [ libadwaita ]; + + dependencies = with python3Packages; [ + pygobject3 + f3d + ]; + + dontWrapGApps = true; + + preFixup = '' + makeWrapperArgs+=("''${gappsWrapperArgs[@]}") + ''; + + meta = { + description = "3D model viewer for the GNOME desktop powered by f3d"; + homepage = "https://github.com/Nokse22/Exhibit"; + license = with lib.licenses; [ + gpl3Plus + cc0 + ]; + mainProgram = "exhibit"; + maintainers = with lib.maintainers; [ aleksana ]; + platforms = lib.platforms.linux; + }; +}