all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#48599] [PATCH] gnu: Add omemo-wget.
@ 2021-05-23  7:38 Raghav Gururajan via Guix-patches via
  2021-07-02 10:23 ` zimoun
  0 siblings, 1 reply; 4+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-05-23  7:38 UTC (permalink / raw)
  To: 48599; +Cc: Raghav Gururajan

* gnu/packages/messaging.scm (omemo-wget): New variable.
---
 gnu/packages/messaging.scm | 41 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm
index 59c154b9f7..f26df7dd46 100644
--- a/gnu/packages/messaging.scm
+++ b/gnu/packages/messaging.scm
@@ -72,6 +72,7 @@
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gnome)
   #:use-module (gnu packages gnupg)
+  #:use-module (gnu packages golang)
   #:use-module (gnu packages gperf)
   #:use-module (gnu packages graphviz)
   #:use-module (gnu packages gstreamer)
@@ -125,6 +126,7 @@
   #:use-module (guix build-system cmake)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
+  #:use-module (guix build-system go)
   #:use-module (guix build-system meson)
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
@@ -137,6 +139,45 @@
   #:use-module (guix packages)
   #:use-module (guix utils))
 
+(define-public omemo-wget
+  (package
+    (name "omemo-wget")
+    (version "0.3.0")
+    (source
+     (origin
+       (method git-fetch)
+       (uri
+        (git-reference
+         (url "https://github.com/roobre/omemo-wget")
+         (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "0s3vfaicw5xbjl9yiyr4ckrzhzqbvfh1w2ih1igavlfpgw4v7kva"))))
+    (build-system go-build-system)
+    (arguments
+     `(#:import-path "github.com/roobre/omemo-wget"
+       #:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'patch-source
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let* ((xdg-utils (assoc-ref inputs "xdg-utils"))
+                    (xdg-open (string-append xdg-utils "/bin/xdg-open")))
+               (substitute* (find-files "." "\\.go$")
+                 ;; To correct the import path of 'aesgcm' package.
+                 (("roob\\.re/omemo-wget/aesgcm")
+                  "github.com/roobre/omemo-wget/aesgcm")
+                 ;; To use absolute path of 'xdg-open' program.
+                 (("xdg-open") xdg-open))))))))
+    (inputs
+     `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
+       ("xdg-utils" ,xdg-utils)))       ; for xdg-open program
+    (home-page "https://github.com/roobre/omemo-wget")
+    (synopsis "CLI to download and decrypt aesgcm:// URLs")
+    (description "OMEMO-wget is a tool to handle cryptographic URLs,
+generated by OMEMO Multi-End Message and Object Encryption,
+during XMPP-based sessions.")
+    (license license:lgpl3+)))
+
 (define-public psi
   (package
     (name "psi")
-- 
2.31.1





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

* [bug#48599] [PATCH] gnu: Add omemo-wget.
  2021-05-23  7:38 [bug#48599] [PATCH] gnu: Add omemo-wget Raghav Gururajan via Guix-patches via
@ 2021-07-02 10:23 ` zimoun
  2021-07-16  9:52   ` Raghav Gururajan via Guix-patches via
  2021-07-19  1:02   ` bug#48599: " Raghav Gururajan via Guix-patches via
  0 siblings, 2 replies; 4+ messages in thread
From: zimoun @ 2021-07-02 10:23 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: 48599

Hi Raghav,

I have not tried this patch.  It is 4 weeks so maybe you can push it if
it builds and works for you. WDYT?


On Sun, 23 May 2021 at 03:38, Raghav Gururajan <rg@raghavgururajan.name> wrote:
> * gnu/packages/messaging.scm (omemo-wget): New variable.
> ---
>  gnu/packages/messaging.scm | 41 ++++++++++++++++++++++++++++++++++++++
>  1 file changed, 41 insertions(+)

[...]

> +(define-public omemo-wget
> +  (package
> +    (name "omemo-wget")
> +    (version "0.3.0")
> +    (source
> +     (origin
> +       (method git-fetch)
> +       (uri
> +        (git-reference
> +         (url "https://github.com/roobre/omemo-wget")
> +         (commit (string-append "v" version))))
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "0s3vfaicw5xbjl9yiyr4ckrzhzqbvfh1w2ih1igavlfpgw4v7kva"))))
> +    (build-system go-build-system)
> +    (arguments
> +     `(#:import-path "github.com/roobre/omemo-wget"
> +       #:phases
> +       (modify-phases %standard-phases
> +         (add-after 'unpack 'patch-source
> +           (lambda* (#:key inputs #:allow-other-keys)
> +             (let* ((xdg-utils (assoc-ref inputs "xdg-utils"))
> +                    (xdg-open (string-append xdg-utils "/bin/xdg-open")))
> +               (substitute* (find-files "." "\\.go$")
> +                 ;; To correct the import path of 'aesgcm' package.
> +                 (("roob\\.re/omemo-wget/aesgcm")
> +                  "github.com/roobre/omemo-wget/aesgcm")
> +                 ;; To use absolute path of 'xdg-open' program.
> +                 (("xdg-open") xdg-open))))))))
> +    (inputs
> +     `(("go-github-com-pkg-errors" ,go-github-com-pkg-errors)
> +       ("xdg-utils" ,xdg-utils)))       ; for xdg-open program
> +    (home-page "https://github.com/roobre/omemo-wget")
> +    (synopsis "CLI to download and decrypt aesgcm:// URLs")

Maybe as synopsis: "Command-line interface for downloading and
decrypting @code{aesgcm://} URLs".  WDYT?

Cheers,
simon




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

* [bug#48599] [PATCH] gnu: Add omemo-wget.
  2021-07-02 10:23 ` zimoun
@ 2021-07-16  9:52   ` Raghav Gururajan via Guix-patches via
  2021-07-19  1:02   ` bug#48599: " Raghav Gururajan via Guix-patches via
  1 sibling, 0 replies; 4+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-07-16  9:52 UTC (permalink / raw)
  To: zimoun; +Cc: 48599


[-- Attachment #1.1: Type: text/plain, Size: 184 bytes --]

Hi Zimon!

> I have not tried this patch.  It is 4 weeks so maybe you can push it if
> it builds and works for you. WDYT?

I'll look into this patch today. :)

Regards,
RG.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

* bug#48599: [PATCH] gnu: Add omemo-wget.
  2021-07-02 10:23 ` zimoun
  2021-07-16  9:52   ` Raghav Gururajan via Guix-patches via
@ 2021-07-19  1:02   ` Raghav Gururajan via Guix-patches via
  1 sibling, 0 replies; 4+ messages in thread
From: Raghav Gururajan via Guix-patches via @ 2021-07-19  1:02 UTC (permalink / raw)
  To: zimoun; +Cc: 48599-done


[-- Attachment #1.1: Type: text/plain, Size: 337 bytes --]

Hi Zimoun!

> I have not tried this patch.  It is 4 weeks so maybe you can push it if
> it builds and works for you. WDYT?

Yes, pushed as 2fbffcf575 to master.

> Maybe as synopsis: "Command-line interface for downloading and
> decrypting @code{aesgcm://} URLs".  WDYT?

I used your suggestion.

Thanks!

Regards,
RG.


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]

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

end of thread, other threads:[~2021-07-19  1:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23  7:38 [bug#48599] [PATCH] gnu: Add omemo-wget Raghav Gururajan via Guix-patches via
2021-07-02 10:23 ` zimoun
2021-07-16  9:52   ` Raghav Gururajan via Guix-patches via
2021-07-19  1:02   ` bug#48599: " Raghav Gururajan via Guix-patches via

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.