emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#45745: closed ([PATCH] gnu: Add python-screenkey.)


From: GNU bug Tracking System
Subject: bug#45745: closed ([PATCH] gnu: Add python-screenkey.)
Date: Mon, 22 Feb 2021 18:07:02 +0000

Your message dated Mon, 22 Feb 2021 19:06:25 +0100
with message-id <60383ab55c6616ca22e131bc9b3bc5f77a01296a.camel@zaclys.net>
and subject line 
has caused the debbugs.gnu.org bug report #45745,
regarding [PATCH] gnu: Add python-screenkey.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
45745: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=45745
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: Add python-screenkey. Date: Sat, 09 Jan 2021 14:45:30 +0000 User-agent: Evolution 3.34.2
Hi,

This patch adds python-screenkey. It almost works with:
```
guix environment -L . python-screenkey --ad-hoc python-screenkey --
screenkey
```

although it can't initialize GTK.

I don't know how to fix this, if someone wants to take it from here
please go ahead.

Thanks,
Alex

Attachment: 0001-gnu-Add-python-screenkey.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Date: Mon, 22 Feb 2021 19:06:25 +0100 User-agent: Evolution 3.34.2
Made it work and pushed as ad06c29b37924ecf5eb3bd440c7456cad6415c3b.

Have a look at the redshift package for an example on how to wrap the
final binary to include PYTHONPATH and GI_TYPELIB_PATH from the build
environment.

For this one, I added such a phase:

(add-after 'install 'wrap-screenkey
            (lambda* (#:key outputs #:allow-other-keys)
              (wrap-program
                  (string-append (assoc-ref outputs "out")
"/bin/screenkey")
                `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))
                `("GI_TYPELIB_PATH"
                  ":" prefix (,(getenv "GI_TYPELIB_PATH"))))
              #t))

Thank you!

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]