GNU bug report logs - #76562
[PATCH] gnu: Add pegasus-frontend

Previous Next

Package: guix-patches;

Reported by: Andreas Fuglesteg Dale <andreasfdale <at> gmail.com>

Date: Tue, 25 Feb 2025 18:05:02 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 76562 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to adam.faiz <at> disroot.org, liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org:
bug#76562; Package guix-patches. (Tue, 25 Feb 2025 18:05:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Fuglesteg Dale <andreasfdale <at> gmail.com>:
New bug report received and forwarded. Copy sent to adam.faiz <at> disroot.org, liliana.prikler <at> gmail.com, iyzsong <at> envs.net, guix-patches <at> gnu.org. (Tue, 25 Feb 2025 18:05:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Fuglesteg Dale <andreasfdale <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Andreas Fuglesteg Dale <andreasfdale <at> gmail.com>
Subject: [PATCH] gnu: Add pegasus-frontend
Date: Tue, 25 Feb 2025 18:58:50 +0100
* gnu/packages/emulators.scm (pegasus-frontend): New variable.

Change-Id: Ie1f186c0bfd303796b04bd80d2bd3c719391c99e
---
 gnu/packages/emulators.scm | 52 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm
index 9e2d648..4fccb8c 100644
--- a/gnu/packages/emulators.scm
+++ b/gnu/packages/emulators.scm
@@ -22,6 +22,7 @@
 ;;; Copyright © 2023 Hendursaga <hendursaga <at> aol.com>
 ;;; Copyright © 2023 Zheng Junjie <873216071 <at> qq.com>
 ;;; Copyright © 2024 Artyom V. Poptsov <poptsov.artyom <at> gmail.com>
+;;; Copyright © 2025 Andreas Fuglesteg Dale <andreasfdale <at> gmail.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -112,6 +113,7 @@ (define-module (gnu packages emulators)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
   #:use-module (gnu packages web)
+  #:use-module (gnu packages gstreamer)
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system copy)
   #:use-module (guix build-system glib-or-gtk)
@@ -4085,3 +4087,53 @@ (define-public emu8051
       (synopsis "8051/8052 emulator with curses-based UI")
       (description "emu8051 is a simulator of the 8051/8052 microcontrollers.")
       (license license:expat))))
+
+(define-public pegasus-frontend
+  (package
+    (name "pegasus-frontend")
+    (version "weekly_2024w38")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/mmatyas/pegasus-frontend")
+             (commit version)
+             (recursive? #t)))
+       (sha256
+        (base32 "04773v3b50wya7w3hgy6j8sli07aimsfc8njqsycg9gbqygm183l"))
+       (file-name (git-file-name name version))))
+    (build-system qt-build-system)
+    (arguments
+     (list
+      #:qtbase qtbase-5
+      #:phases #~(modify-phases %standard-phases
+                   (add-after 'qt-wrap 'gst-wrap
+                     ;; Set required environment variable for gstreamer plugins
+                     ;; Used for video playback
+                     (lambda _
+                       (wrap-program (string-append #$output "/bin/pegasus-fe")
+                         `("GST_PLUGIN_SYSTEM_PATH" suffix
+                           (,(string-append #$gst-plugins-good
+                                            "/lib/gstreamer-1.0"))))))
+                   (add-before 'check 'set-display
+                     (lambda _
+                       ;; Required for tests to not attempt to start an OpenGL context
+                       (setenv "QT_QUICK_BACKEND" "software"))))))
+    (inputs (list sdl2
+                  qtbase-5
+                  qtsvg-5
+                  qtdeclarative-5
+                  qtgraphicaleffects
+                  qtmultimedia-5
+                  qtgamepad
+                  gst-plugins-good ; For video playback
+                  bash-minimal)) ; For wrap-program
+    (native-inputs (list qttools-5))
+    (synopsis "Customizable graphical emulator frontend")
+    (description
+     "Pegasus is a graphical frontend for browsing your game library and launching all
+   kinds of emulators from the same place.  It's focusing on customizability, cross
+   platform support (including embedded) and high performance.")
+    (home-page "https://pegasus-frontend.org")
+    (license license:gpl3)))
+

base-commit: 87045f0982bd7aebb07b380cbf322651227546f4
-- 
2.48.1





This bug report was last modified 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.