gnu: nyxt: Update to 2-pre-release-4.
* gnu/packages/web-browsers.scm (nyxt): Update to 2-pre-release-4.master
parent
12c40ca919
commit
0da64c60fb
|
@ -461,7 +461,7 @@ driven and does not detract you from your daily work.")
|
||||||
(name "nyxt")
|
(name "nyxt")
|
||||||
;; Package the pre-release because latest stable 1.5.0 does not build
|
;; Package the pre-release because latest stable 1.5.0 does not build
|
||||||
;; anymore.
|
;; anymore.
|
||||||
(version "2-pre-release-3")
|
(version "2-pre-release-4")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -472,7 +472,7 @@ driven and does not detract you from your daily work.")
|
||||||
(commit version)))
|
(commit version)))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"16crhc89hpvzkms5fypq9vdrf7glidqwh7yvy5cdmjdq4v7fkmy4"))
|
"00865plmvgl1nj009a4w9bcb5mf0zgqjx7w6slacyqgidjzad6qm"))
|
||||||
(file-name (git-file-name "nyxt" version))))
|
(file-name (git-file-name "nyxt" version))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
|
@ -482,28 +482,20 @@ driven and does not detract you from your daily work.")
|
||||||
#:strip-binaries? #f ; Stripping breaks SBCL binaries.
|
#:strip-binaries? #f ; Stripping breaks SBCL binaries.
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
;; Version is guessed from .git which Guix does not have.
|
|
||||||
(add-after 'unpack 'patch-version
|
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
|
||||||
(let ((version (format #f "~a" ,version))
|
|
||||||
(file "source/global.lisp"))
|
|
||||||
(chmod file #o666)
|
|
||||||
(let ((port (open-file file "a")))
|
|
||||||
(format port "(setf +version+ ~s)" version)
|
|
||||||
(close-port port)))
|
|
||||||
#t))
|
|
||||||
(add-before 'build 'make-desktop-version-number
|
|
||||||
(lambda _
|
|
||||||
(with-output-to-file "version"
|
|
||||||
(lambda _
|
|
||||||
(format #t "~a" ,version)
|
|
||||||
#t))))
|
|
||||||
|
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(add-before 'build 'fix-common-lisp-cache-folder
|
(add-before 'build 'fix-common-lisp-cache-folder
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "HOME" "/tmp")
|
(setenv "HOME" "/tmp")
|
||||||
#t))
|
#t))
|
||||||
|
(add-before 'build 'set-version
|
||||||
|
(lambda _
|
||||||
|
(setenv "NYXT_VERSION" ,version)
|
||||||
|
#t))
|
||||||
|
(add-before 'check 'configure-tests
|
||||||
|
(lambda _
|
||||||
|
(setenv "NYXT_TESTS_NO_NETWORK" "1")
|
||||||
|
(setenv "NYXT_TESTS_ERROR_ON_FAIL" "1")
|
||||||
|
#t))
|
||||||
(add-after 'install 'wrap-program
|
(add-after 'install 'wrap-program
|
||||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(let* ((bin (string-append (assoc-ref outputs "out") "/bin/nyxt"))
|
(let* ((bin (string-append (assoc-ref outputs "out") "/bin/nyxt"))
|
||||||
|
|
Reference in New Issue