telegram.scm 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. (define-module (telegram)
  2. #:use-module (guix channels)
  3. #:use-module (guix inferior)
  4. #:use-module (guix profiles)
  5. #:use-module (guix store)
  6. #:use-module (srfi srfi-1))
  7. (define channels
  8. (list (channel
  9. (name 'guix)
  10. (url "https://cgit.wugi.info/git/guix/guix")
  11. (commit "b53fac227836bcec3a2a7a44f7720b9a23db90f2")
  12. (introduction (@@ (guix channels) %guix-channel-introduction)))
  13. (channel
  14. (name 'johnlepikhin)
  15. (url "https://cgit.wugi.info/git/guix/johnlepikhin-guix-channel.git")
  16. (branch "master")
  17. (commit "d254b40b5edb9130629dda43f4b7ae74b26fdc41"))))
  18. (define cached
  19. (with-store store
  20. (cached-channel-instance store
  21. channels
  22. #:authenticate? #t
  23. #:cache-directory (%inferior-cache-directory)
  24. #:ttl (* 3600 24 30))))
  25. (define inferior
  26. (open-inferior cached #:error-port (current-error-port)))
  27. (define-public telegram-desktop
  28. (first (lookup-inferior-packages inferior "telegram-desktop")))
  29. (packages->manifest (list telegram-desktop))