all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#58480] [PATCH] gnu: Add ghc-open-browser.
@ 2022-10-13  4:28 jgart via Guix-patches via
  2022-10-13 10:10 ` bug#58480: " Christopher Baines
  0 siblings, 1 reply; 2+ messages in thread
From: jgart via Guix-patches via @ 2022-10-13  4:28 UTC (permalink / raw)
  To: 58480; +Cc: jgart

* gnu/packages/haskell-xyz.scm (ghc-open-browser): New variable.
---
 gnu/packages/haskell-xyz.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index db653f8c93..70fdffdc0b 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -53,6 +53,7 @@ (define-module (gnu packages haskell-xyz)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages databases)
   #:use-module (gnu packages emacs)
+  #:use-module (gnu packages freedesktop)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages gtk)
@@ -16118,6 +16119,33 @@ (define-public ghc-ansi2html
 pages.")
     (license license:bsd-3)))
 
+(define-public ghc-open-browser
+  (package
+    (name "ghc-open-browser")
+    (version "0.2.1.0")
+    (source (origin
+              (method url-fetch)
+              (uri (hackage-uri "open-browser" version))
+              (sha256
+               (base32
+                "0rna8ir2cfp8gk0rd2q60an51jxc08lx4gl0liw8wwqgh1ijxv8b"))))
+    (build-system haskell-build-system)
+    (arguments
+      (list
+       #:phases
+       #~(modify-phases %standard-phases
+         (add-before 'configure 'patch-xdg-open
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((xdg-open (assoc-ref inputs "xdg-utils")))
+               (substitute* "lib/Web/Browser/Linux.hs"
+                 (("xdg-open")
+                  (search-input-file inputs "/bin/xdg-open")))))))))
+    (inputs (list xdg-utils))
+    (home-page "https://github.com/rightfold/open-browser")
+    (synopsis "Open a web browser from Haskell")
+    (description "Haskell library for opening the web browser.")
+    (license license:bsd-3)))
+
 (define-public ghc-singleton-bool
   (package
     (name "ghc-singleton-bool")
-- 
2.38.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#58480: [PATCH] gnu: Add ghc-open-browser.
  2022-10-13  4:28 [bug#58480] [PATCH] gnu: Add ghc-open-browser jgart via Guix-patches via
@ 2022-10-13 10:10 ` Christopher Baines
  0 siblings, 0 replies; 2+ messages in thread
From: Christopher Baines @ 2022-10-13 10:10 UTC (permalink / raw)
  To: jgart; +Cc: 58480-done

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]


jgart via Guix-patches via <guix-patches@gnu.org> writes:

> * gnu/packages/haskell-xyz.scm (ghc-open-browser): New variable.
> ---
>  gnu/packages/haskell-xyz.scm | 28 ++++++++++++++++++++++++++++
>  1 file changed, 28 insertions(+)

Thanks, pushed to master as cc58a0c62739d93c1d22a9930f11abdb0bd7ac04.

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-13 10:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13  4:28 [bug#58480] [PATCH] gnu: Add ghc-open-browser jgart via Guix-patches via
2022-10-13 10:10 ` bug#58480: " Christopher Baines

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.