mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2025-10-02 02:14:59 +00:00
nongnu: electron: Use extended wrapper-plan syntax.
This is a follow-up to 26778f221b
.
* nongnu/packages/electron.scm (electron-27)
[arguments]{wrapper-plan}: Update it.
{phases}: Replace phase 'wrap-where-patchelf-does-not-work by
lighter phase 'symlink-binary-file.
[inputs]: Add nss, necessary for the RUNPATH.
This commit is contained in:
parent
caa0d05a3e
commit
735c74940b
1 changed files with 10 additions and 17 deletions
|
@ -17,6 +17,7 @@
|
|||
#:use-module (ice-9 match)
|
||||
#:use-module (gnu packages compression)
|
||||
#:use-module (gnu packages gtk)
|
||||
#:use-module (gnu packages nss)
|
||||
#:use-module (gnu packages video))
|
||||
|
||||
(define (electron-source version hash)
|
||||
|
@ -46,10 +47,8 @@
|
|||
(arguments
|
||||
(list
|
||||
#:wrapper-plan
|
||||
#~'("electron"
|
||||
"libffmpeg.so"
|
||||
"libGLESv2.so"
|
||||
"libEGL.so")
|
||||
#~'(("electron" (("out" "/share/electron")
|
||||
("nss" "/lib/nss"))))
|
||||
#:install-plan
|
||||
#~'(("." "share/electron/" #:include
|
||||
("electron"
|
||||
|
@ -69,20 +68,14 @@
|
|||
("locales" "share/electron/"))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
(add-before 'install-wrapper 'wrap-where-patchelf-does-not-work
|
||||
(lambda* (#:key inputs #:allow-other-keys)
|
||||
(let ((bin (string-append #$output "/share/electron/electron"))
|
||||
(wrapper (string-append #$output "/bin/electron")))
|
||||
(mkdir-p (dirname wrapper))
|
||||
(make-wrapper wrapper bin
|
||||
`("LD_LIBRARY_PATH" ":"
|
||||
prefix
|
||||
(,(string-join
|
||||
(list
|
||||
(string-append out "/share/electron"))
|
||||
":"))))))))))
|
||||
(add-after 'install 'symlink-binary-file
|
||||
(lambda _
|
||||
(let ((bin (string-append #$output "/bin")))
|
||||
(mkdir-p bin)
|
||||
(symlink (string-append #$output "/share/electron/electron")
|
||||
(string-append bin "/electron"))))))))
|
||||
(native-inputs (list unzip))
|
||||
(inputs (list ffmpeg gdk-pixbuf))
|
||||
(inputs (list ffmpeg gdk-pixbuf nss))
|
||||
(home-page "https://www.electronjs.org/")
|
||||
(synopsis "Cross platform desktop application shell")
|
||||
(description "The Electron framework lets you write cross-platform desktop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue