blob: 4a7b92df86cb4e2be0f4d412bb1813f23fb4f0ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
(define-module (emacs-nyxt)
#:use-module (ice-9 popen)
#:use-module (ice-9 rdelim)
#:use-module (guix packages)
#:use-module (guix build-system emacs)
#:use-module (guix git-download)
#:use-module (gnu packages emacs-xyz)
#:use-module (gnu packages web-browsers)
#:use-module (guix build utils)
#:use-module (guix gexp)
#:use-module ((guix licenses) #:prefix license:))
(define %source-dir (dirname (current-filename)))
(define (emacs-nyxt-git-version)
(let* ((port (with-directory-excursion
%source-dir
(open-input-pipe "git describe --always --tags")))
(version (read-line port)))
(close-pipe port)
version))
(define-public emacs-nyxt
(package
(name "emacs-nyxt")
(version (emacs-nyxt-git-version))
(source
(local-file %source-dir
#:recursive? #t
#:select? (git-predicate %source-dir)))
(build-system emacs-build-system)
(inputs
(list nyxt))
(propagated-inputs
(list emacs-sly))
(home-page "https://git.migalmoreno.com/nyxt.el")
(synopsis "Interact with Nyxt from Emacs")
(description "This package consists of custom logic to interact with Nyxt
from Emacs.")
(license license:gpl3+)))
emacs-nyxt
|