GNU bug report logs - #48599
[PATCH] gnu: Add omemo-wget.

Previous Next

Package: guix-patches;

Reported by: Raghav Gururajan <rg <at> raghavgururajan.name>

Date: Sun, 23 May 2021 07:39:02 UTC

Severity: normal

Tags: patch

Done: Raghav Gururajan <rg <at> raghavgururajan.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48599 in the body.
You can then email your comments to 48599 AT debbugs.gnu.org in the normal way.

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

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


Report forwarded to guix-patches <at> gnu.org:
bug#48599; Package guix-patches. (Sun, 23 May 2021 07:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Raghav Gururajan <rg <at> raghavgururajan.name>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 23 May 2021 07:39:02 GMT) Full text and rfc822 format available.

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

From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: guix-patches <at> gnu.org
Cc: Raghav Gururajan <rg <at> raghavgururajan.name>
Subject: [PATCH] gnu: Add omemo-wget.
Date: Sun, 23 May 2021 03:38:02 -0400
* 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





Information forwarded to guix-patches <at> gnu.org:
bug#48599; Package guix-patches. (Fri, 02 Jul 2021 10:28:02 GMT) Full text and rfc822 format available.

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

From: zimoun <zimon.toutoune <at> gmail.com>
To: Raghav Gururajan <rg <at> raghavgururajan.name>
Cc: 48599 <at> debbugs.gnu.org
Subject: Re: bug#48599: [PATCH] gnu: Add omemo-wget.
Date: Fri, 02 Jul 2021 12:23:55 +0200
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 <at> 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




Information forwarded to guix-patches <at> gnu.org:
bug#48599; Package guix-patches. (Fri, 16 Jul 2021 09:53:02 GMT) Full text and rfc822 format available.

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

From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 48599 <at> debbugs.gnu.org
Subject: Re: bug#48599: [PATCH] gnu: Add omemo-wget.
Date: Fri, 16 Jul 2021 05:52:23 -0400
[Message part 1 (text/plain, inline)]
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.

[OpenPGP_signature (application/pgp-signature, attachment)]

Reply sent to Raghav Gururajan <rg <at> raghavgururajan.name>:
You have taken responsibility. (Mon, 19 Jul 2021 01:03:01 GMT) Full text and rfc822 format available.

Notification sent to Raghav Gururajan <rg <at> raghavgururajan.name>:
bug acknowledged by developer. (Mon, 19 Jul 2021 01:03:02 GMT) Full text and rfc822 format available.

Message #16 received at 48599-done <at> debbugs.gnu.org (full text, mbox):

From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: zimoun <zimon.toutoune <at> gmail.com>
Cc: 48599-done <at> debbugs.gnu.org
Subject: Re: bug#48599: [PATCH] gnu: Add omemo-wget.
Date: Sun, 18 Jul 2021 21:02:36 -0400
[Message part 1 (text/plain, inline)]
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.

[OpenPGP_signature (application/pgp-signature, attachment)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 16 Aug 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 254 days ago.

Previous Next


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