gnu: nyxt (formerly 'next'): Update to 20200702.
* gnu/packages/web-browsers.scm (next): Deprecate in favour of nyxt. (nyxt): New variable.
This commit is contained in:
parent
e643431c12
commit
ec70df7243
1 changed files with 124 additions and 235 deletions
|
@ -452,247 +452,136 @@ vim editor and also easily configurable during runtime. Vimb is mostly keyboard
|
||||||
driven and does not detract you from your daily work.")
|
driven and does not detract you from your daily work.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
(define next-gtk-webkit
|
(define-public nyxt
|
||||||
(package
|
;; 1.5.0 does not build anymore, let's use the master which is more stable anyways.
|
||||||
(name "next-gtk-webkit")
|
(let ((commit "9440980a9c5f75232b08ca98183b22be4a3d9bc3"))
|
||||||
(version "1.5.0")
|
(package
|
||||||
(source
|
(name "nyxt")
|
||||||
(origin
|
(version (git-version "1.5.0" "1" commit))
|
||||||
(method git-fetch)
|
(source
|
||||||
(uri (git-reference
|
(origin
|
||||||
;; TODO: Mirror seems to hang, let's fallback to GitHub for now.
|
(method git-fetch)
|
||||||
;; (url "https://source.atlas.engineer/public/next")
|
(uri (git-reference
|
||||||
(url "https://github.com/atlas-engineer/next")
|
;; TODO: Mirror seems to hang, let's fallback to GitHub for now.
|
||||||
(commit version)))
|
;; (url "https://source.atlas.engineer/public/nyxt")
|
||||||
(sha256
|
(url "https://github.com/atlas-engineer/nyxt")
|
||||||
(base32
|
(commit commit)))
|
||||||
"1gqkp185wcwaxr8py90hqk44nqjblrrdwvig19gizrbzr2gx2zhy"))
|
(sha256
|
||||||
(file-name (git-file-name "next" version))))
|
(base32
|
||||||
(build-system glib-or-gtk-build-system)
|
"079n5ffsa8136i9ik5mn4rwa3iv0avncw6y973gj3hlf8sf4wv7g"))
|
||||||
(arguments
|
(file-name (git-file-name "nyxt" version))))
|
||||||
`(#:tests? #f ; no tests
|
(build-system gnu-build-system)
|
||||||
#:make-flags (list "gtk-webkit"
|
(arguments
|
||||||
"CC=gcc"
|
`(#:make-flags (list "nyxt" "NYXT_INTERNAL_QUICKLISP=false"
|
||||||
(string-append "PREFIX=" %output))
|
(string-append "DESTDIR=" (assoc-ref %outputs "out"))
|
||||||
#:phases
|
"PREFIX=")
|
||||||
(modify-phases %standard-phases
|
#:strip-binaries? #f ; Stripping breaks SBCL binaries.
|
||||||
(delete 'configure)
|
#:phases
|
||||||
(replace 'install
|
(modify-phases %standard-phases
|
||||||
(lambda* (#:key (make-flags '()) #:allow-other-keys)
|
(add-after 'unpack 'patch-version ; Version is guessed from .git which Guix does not have.
|
||||||
(apply invoke "make" "install-gtk-webkit" make-flags))))))
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(inputs
|
(let ((version (format #f "~a" ,version)))
|
||||||
`(("glib-networking" ,glib-networking)
|
(substitute* "source/global.lisp"
|
||||||
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
|
(("version\\)\\)\\)")
|
||||||
("webkitgtk" ,webkitgtk)))
|
(string-append "version)))"
|
||||||
(native-inputs
|
"\n"
|
||||||
`(("pkg-config" ,pkg-config)))
|
"(setf +version+ \"" version "\")"))))
|
||||||
(home-page "https://next.atlas.engineer")
|
#t))
|
||||||
(synopsis "Extensible web-browser in Common Lisp")
|
(add-before 'build 'make-desktop-version-number
|
||||||
(description "Next is a keyboard-oriented, extensible web-browser
|
(lambda _
|
||||||
|
(with-output-to-file "version"
|
||||||
|
(lambda _
|
||||||
|
(format #t "~a" ,version)))))
|
||||||
|
|
||||||
|
(delete 'configure)
|
||||||
|
(add-before 'build 'fix-common-lisp-cache-folder
|
||||||
|
(lambda _
|
||||||
|
(setenv "HOME" "/tmp")
|
||||||
|
#t))
|
||||||
|
(add-after 'install 'wrap-program
|
||||||
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
|
(let* ((bin (string-append (assoc-ref outputs "out") "/bin/nyxt"))
|
||||||
|
(glib-networking (assoc-ref inputs "glib-networking"))
|
||||||
|
(libs '("gsettings-desktop-schemas"))
|
||||||
|
(path (string-join
|
||||||
|
(map (lambda (lib)
|
||||||
|
(string-append (assoc-ref inputs lib) "/lib"))
|
||||||
|
libs)
|
||||||
|
":"))
|
||||||
|
(gi-path (string-join
|
||||||
|
(map (lambda (lib)
|
||||||
|
(string-append (assoc-ref inputs lib) "/lib/girepository-1.0"))
|
||||||
|
libs)
|
||||||
|
":"))
|
||||||
|
(xdg-path (string-join
|
||||||
|
(map (lambda (lib)
|
||||||
|
(string-append (assoc-ref inputs lib) "/share"))
|
||||||
|
libs)
|
||||||
|
":")))
|
||||||
|
(wrap-program bin
|
||||||
|
`("GIO_EXTRA_MODULES" prefix
|
||||||
|
(,(string-append glib-networking "/lib/gio/modules")))
|
||||||
|
`("GI_TYPELIB_PATH" prefix (,gi-path))
|
||||||
|
`("LD_LIBRARY_PATH" ":" prefix (,path))
|
||||||
|
`("XDG_DATA_DIRS" ":" prefix (,xdg-path)))
|
||||||
|
#t))))))
|
||||||
|
(native-inputs
|
||||||
|
`(("prove" ,sbcl-prove)
|
||||||
|
("sbcl" ,sbcl)))
|
||||||
|
(inputs
|
||||||
|
;; We need to avoid sbcl-* inputs (sbcl-cl-cffi-gtk in particular) as they
|
||||||
|
;; seem to cause Nyxt to hang into a hogging process in about 10 minutes.
|
||||||
|
;; Probably an issue between CFFI and how we build SBCL packages.
|
||||||
|
;; See https://github.com/atlas-engineer/nyxt/issues/680.
|
||||||
|
`(("alexandria" ,cl-alexandria)
|
||||||
|
("bordeaux-threads" ,cl-bordeaux-threads)
|
||||||
|
("cl-containers" ,cl-containers)
|
||||||
|
("cl-css" ,cl-css)
|
||||||
|
("cl-json" ,cl-json)
|
||||||
|
("cl-markup" ,cl-markup)
|
||||||
|
("cl-ppcre" ,cl-ppcre)
|
||||||
|
("cl-prevalence" ,cl-prevalence)
|
||||||
|
("closer-mop" ,cl-closer-mop)
|
||||||
|
("cluffer" ,cl-cluffer)
|
||||||
|
("dexador" ,cl-dexador)
|
||||||
|
("enchant" ,cl-enchant)
|
||||||
|
("fset" ,cl-fset)
|
||||||
|
("iolib" ,cl-iolib)
|
||||||
|
("local-time" ,cl-local-time)
|
||||||
|
("log4cl" ,cl-log4cl)
|
||||||
|
("lparallel" ,cl-lparallel)
|
||||||
|
("mk-string-metrics" ,cl-mk-string-metrics)
|
||||||
|
("moptilities" ,cl-moptilities)
|
||||||
|
("osicat" ,sbcl-osicat) ; SBCL version needed for libosicat.so.
|
||||||
|
("parenscript" ,cl-parenscript)
|
||||||
|
("plump" ,cl-plump)
|
||||||
|
("quri" ,cl-quri)
|
||||||
|
("serapeum" ,cl-serapeum)
|
||||||
|
("str" ,cl-str)
|
||||||
|
("swank" ,cl-slime-swank)
|
||||||
|
("trivia" ,cl-trivia)
|
||||||
|
("trivial-clipboard" ,cl-trivial-clipboard)
|
||||||
|
("trivial-features" ,cl-trivial-features)
|
||||||
|
("trivial-package-local-nicknames" ,cl-trivial-package-local-nicknames)
|
||||||
|
("trivial-types" ,cl-trivial-types)
|
||||||
|
("unix-opts" ,cl-unix-opts)
|
||||||
|
;; WebKitGTK deps
|
||||||
|
("cl-cffi-gtk" ,cl-cffi-gtk)
|
||||||
|
("cl-webkit" ,cl-webkit)
|
||||||
|
("glib-networking" ,glib-networking)
|
||||||
|
("gsettings-desktop-schemas" ,gsettings-desktop-schemas)))
|
||||||
|
(synopsis "Extensible web-browser in Common Lisp")
|
||||||
|
(home-page "https://nyxt.atlas.engineer")
|
||||||
|
(description "Nyxt is a keyboard-oriented, extensible web-browser
|
||||||
designed for power users. The application has familiar Emacs and VI
|
designed for power users. The application has familiar Emacs and VI
|
||||||
key-bindings and is fully configurable and extensible in Common Lisp.")
|
key-bindings and is fully configurable and extensible in Common Lisp.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3))))
|
||||||
|
|
||||||
(define sbcl-next-download-manager
|
|
||||||
(package
|
|
||||||
(inherit next-gtk-webkit)
|
|
||||||
(name "sbcl-next-download-manager")
|
|
||||||
(build-system asdf-build-system/sbcl)
|
|
||||||
(arguments
|
|
||||||
`(#:tests? #f ; Need online access.
|
|
||||||
#:asd-file "next.asd"
|
|
||||||
#:asd-system-name "next/download-manager"))
|
|
||||||
(inputs
|
|
||||||
`(("cl-ppcre" ,sbcl-cl-ppcre)
|
|
||||||
("dexador" ,sbcl-dexador)
|
|
||||||
("log4cl" ,sbcl-log4cl)
|
|
||||||
("lparallel" ,sbcl-lparallel)
|
|
||||||
("quri" ,sbcl-quri)
|
|
||||||
("str" ,sbcl-cl-str)))
|
|
||||||
(native-inputs
|
|
||||||
`(("trivial-features" ,sbcl-trivial-features)
|
|
||||||
("prove-asdf" ,sbcl-prove-asdf)))
|
|
||||||
(synopsis "Extensible web-browser in Common Lisp (download manager)")))
|
|
||||||
|
|
||||||
(define sbcl-next-ring
|
|
||||||
(package
|
|
||||||
(inherit next-gtk-webkit)
|
|
||||||
(name "sbcl-next-ring")
|
|
||||||
(build-system asdf-build-system/sbcl)
|
|
||||||
(arguments
|
|
||||||
`(#:tests? #t
|
|
||||||
#:asd-file "next.asd"
|
|
||||||
#:asd-system-name "next/ring"))
|
|
||||||
(native-inputs
|
|
||||||
`(("trivial-features" ,sbcl-trivial-features)
|
|
||||||
("prove-asdf" ,sbcl-prove-asdf)))
|
|
||||||
(synopsis "Extensible web-browser in Common Lisp (ring)")))
|
|
||||||
|
|
||||||
(define sbcl-next-history-tree
|
|
||||||
(package
|
|
||||||
(inherit next-gtk-webkit)
|
|
||||||
(name "sbcl-next-history-tree")
|
|
||||||
(build-system asdf-build-system/sbcl)
|
|
||||||
(arguments
|
|
||||||
`(#:tests? #t
|
|
||||||
#:asd-file "next.asd"
|
|
||||||
#:asd-system-name "next/history-tree"))
|
|
||||||
(native-inputs
|
|
||||||
`(("trivial-features" ,sbcl-trivial-features)
|
|
||||||
("prove-asdf" ,sbcl-prove-asdf)))
|
|
||||||
(synopsis "Extensible web-browser in Common Lisp (history-tree)")))
|
|
||||||
|
|
||||||
(define sbcl-next-password-manager
|
|
||||||
(package
|
|
||||||
(inherit next-gtk-webkit)
|
|
||||||
(name "sbcl-next-password-manager")
|
|
||||||
(build-system asdf-build-system/sbcl)
|
|
||||||
(arguments
|
|
||||||
`(#:tests? #t
|
|
||||||
#:asd-file "next.asd"
|
|
||||||
#:asd-system-name "next/password-manager"))
|
|
||||||
(inputs
|
|
||||||
`(("bordeaux-threads" ,sbcl-bordeaux-threads)
|
|
||||||
("cl-annot" ,sbcl-cl-annot)
|
|
||||||
("cl-ppcre" ,sbcl-cl-ppcre)
|
|
||||||
("str" ,sbcl-cl-str)
|
|
||||||
("trivial-clipboard" ,sbcl-trivial-clipboard)))
|
|
||||||
(native-inputs
|
|
||||||
`(("trivial-features" ,sbcl-trivial-features)
|
|
||||||
("prove-asdf" ,sbcl-prove-asdf)))
|
|
||||||
(synopsis "Extensible web-browser in Common Lisp (password manager)")))
|
|
||||||
|
|
||||||
(define sbcl-next-hooks
|
|
||||||
(package
|
|
||||||
(inherit next-gtk-webkit)
|
|
||||||
(name "sbcl-next-hooks")
|
|
||||||
(build-system asdf-build-system/sbcl)
|
|
||||||
(arguments
|
|
||||||
`(#:tests? #t
|
|
||||||
#:asd-file "next.asd"
|
|
||||||
#:asd-system-name "next/hooks"))
|
|
||||||
(inputs
|
|
||||||
`(("alexandria" ,sbcl-alexandria)
|
|
||||||
("serapeum" ,sbcl-serapeum)))
|
|
||||||
(native-inputs
|
|
||||||
`(("trivial-features" ,sbcl-trivial-features)
|
|
||||||
("prove-asdf" ,sbcl-prove-asdf)))
|
|
||||||
(synopsis "Infinitely extensible web-browser (hooks)")))
|
|
||||||
|
|
||||||
(define-public next
|
(define-public next
|
||||||
(let ((version (package-version next-gtk-webkit)))
|
(deprecated-package "next" nyxt))
|
||||||
(package
|
|
||||||
(inherit next-gtk-webkit)
|
|
||||||
(name "next")
|
|
||||||
(build-system asdf-build-system/sbcl)
|
|
||||||
(outputs '("out" "lib"))
|
|
||||||
(arguments
|
|
||||||
`(#:tests? #f ; no tests
|
|
||||||
#:asd-system-name "next"
|
|
||||||
#:phases (modify-phases %standard-phases
|
|
||||||
(add-after 'unpack 'patch-platform-port-path
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(substitute* "source/ports/gtk-webkit.lisp"
|
|
||||||
(("\"next-gtk-webkit\"")
|
|
||||||
(string-append "\"" (assoc-ref inputs "next-gtk-webkit")
|
|
||||||
"/bin/next-gtk-webkit\"")))
|
|
||||||
#t))
|
|
||||||
(add-after 'patch-platform-port-path 'patch-version
|
|
||||||
;; When the version is not just dot-separated numerals
|
|
||||||
;; (e.g. a git-commit version), Guix modifies the .asd with
|
|
||||||
;; an illegal version number, and then Next fails to query
|
|
||||||
;; it. So we hard-code it here.
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(let ((version (format #f "~a" ,version)))
|
|
||||||
(substitute* "source/global.lisp"
|
|
||||||
(("version\\)\\)\\)")
|
|
||||||
(string-append "version)))
|
|
||||||
(setf +version+ \"" version "\")"))))
|
|
||||||
#t))
|
|
||||||
(add-before 'cleanup 'move-bundle
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(define lib (assoc-ref outputs "lib"))
|
|
||||||
(define actual-fasl (string-append
|
|
||||||
lib
|
|
||||||
"/lib/sbcl/next.fasl"))
|
|
||||||
(define expected-fasl (string-append
|
|
||||||
lib
|
|
||||||
"/lib/sbcl/next--system.fasl"))
|
|
||||||
(copy-file actual-fasl expected-fasl)
|
|
||||||
#t))
|
|
||||||
(add-after 'create-symlinks 'build-program
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(build-program
|
|
||||||
(string-append (assoc-ref outputs "out") "/bin/next")
|
|
||||||
outputs
|
|
||||||
#:entry-program '((next:entry-point) 0))))
|
|
||||||
(add-before 'build 'install-assets
|
|
||||||
;; Since the ASDF build system generates a new .asd with a
|
|
||||||
;; possibly suffixed and thus illegal version number, assets
|
|
||||||
;; should not be installed after the 'build phase or else
|
|
||||||
;; the illegal version will result in NIL in the .desktop
|
|
||||||
;; file.
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
|
||||||
(with-output-to-file "version"
|
|
||||||
(lambda _
|
|
||||||
(format #t "~a" ,(package-version next-gtk-webkit))))
|
|
||||||
(invoke "make" "install-assets"
|
|
||||||
(string-append "PREFIX="
|
|
||||||
(assoc-ref outputs "out")))))
|
|
||||||
(add-after 'unpack 'fix-lambda-list
|
|
||||||
;; Starting from SBCL 2.0.2, Next 1.5.0 won't build
|
|
||||||
;; because of a weird lambda list type.
|
|
||||||
(lambda _
|
|
||||||
(substitute* "source/keymap.lisp"
|
|
||||||
(("^\\(declaim .* define-key\\)\\)") ""))
|
|
||||||
(substitute* "source/search-buffer.lisp"
|
|
||||||
(("define-key :keymap keymap \"C-s\"") "define-key \"C-s\"")
|
|
||||||
(("\\(update-selection-highlight-hint :follow t :scroll t\\)\\)\\)")
|
|
||||||
"(update-selection-highlight-hint :follow t :scroll t)) :keymap keymap)")))))))
|
|
||||||
(inputs
|
|
||||||
`(("alexandria" ,sbcl-alexandria)
|
|
||||||
("bordeaux-threads" ,sbcl-bordeaux-threads)
|
|
||||||
("cl-annot" ,sbcl-cl-annot)
|
|
||||||
("cl-ansi-text" ,sbcl-cl-ansi-text)
|
|
||||||
("cl-css" ,sbcl-cl-css)
|
|
||||||
("cl-json" ,sbcl-cl-json)
|
|
||||||
("cl-markup" ,sbcl-cl-markup)
|
|
||||||
("cl-ppcre" ,sbcl-cl-ppcre)
|
|
||||||
("cl-ppcre-unicode" ,sbcl-cl-ppcre-unicode)
|
|
||||||
("cl-prevalence" ,sbcl-cl-prevalence)
|
|
||||||
("closer-mop" ,sbcl-closer-mop)
|
|
||||||
("dbus" ,cl-dbus)
|
|
||||||
("dexador" ,sbcl-dexador)
|
|
||||||
("ironclad" ,sbcl-ironclad)
|
|
||||||
("local-time" ,sbcl-local-time)
|
|
||||||
("log4cl" ,sbcl-log4cl)
|
|
||||||
("lparallel" ,sbcl-lparallel)
|
|
||||||
("mk-string-metrics" ,sbcl-mk-string-metrics)
|
|
||||||
("parenscript" ,sbcl-parenscript)
|
|
||||||
("plump" ,sbcl-plump)
|
|
||||||
("quri" ,sbcl-quri)
|
|
||||||
("serapeum" ,sbcl-serapeum)
|
|
||||||
("sqlite" ,sbcl-cl-sqlite)
|
|
||||||
("str" ,sbcl-cl-str)
|
|
||||||
("swank" ,sbcl-slime-swank)
|
|
||||||
("trivia" ,sbcl-trivia)
|
|
||||||
("trivial-clipboard" ,sbcl-trivial-clipboard)
|
|
||||||
("unix-opts" ,sbcl-unix-opts)
|
|
||||||
;; Local deps
|
|
||||||
("next-gtk-webkit" ,next-gtk-webkit)
|
|
||||||
("next-download-manager" ,sbcl-next-download-manager)
|
|
||||||
("next-ring" ,sbcl-next-ring)
|
|
||||||
("next-history-tree" ,sbcl-next-history-tree)
|
|
||||||
("next-password-manager" ,sbcl-next-password-manager)
|
|
||||||
("next-hooks" ,sbcl-next-hooks)))
|
|
||||||
(native-inputs
|
|
||||||
`(("trivial-features" ,sbcl-trivial-features)
|
|
||||||
("trivial-types" ,sbcl-trivial-types)
|
|
||||||
("prove-asdf" ,sbcl-prove-asdf)))
|
|
||||||
(synopsis "Extensible web-browser in Common Lisp"))))
|
|
||||||
|
|
||||||
(define-public sbcl-next
|
(define-public sbcl-next
|
||||||
(deprecated-package "sbcl-next" next))
|
(deprecated-package "sbcl-next" nyxt))
|
||||||
|
|
||||||
(define-public bombadillo
|
(define-public bombadillo
|
||||||
(package
|
(package
|
||||||
|
|
Reference in a new issue