mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2025-10-02 02:14:59 +00:00
Compare commits
4 commits
1d281418f9
...
99a02b375d
Author | SHA1 | Date | |
---|---|---|---|
|
99a02b375d | ||
|
d8fd26103d | ||
|
bc46e63c9c | ||
|
71b704c0fe |
1 changed files with 36 additions and 41 deletions
|
@ -5,16 +5,19 @@
|
|||
;;; Copyright © 2024 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
||||
;;; Copyright © 2025 Ricardo Wurmus <rekado@elephly.net>
|
||||
;;; Copyright © 2025 Simen Endsjø <contact@simendsjo.me>
|
||||
;;; Copyright © 2025 Nicolas Graves <ngraves@ngraves.fr>
|
||||
|
||||
(define-module (nongnu packages electron)
|
||||
#:use-module (nonguix build-system chromium-binary)
|
||||
#:use-module ((nonguix licenses) :prefix license:)
|
||||
#:use-module (guix download)
|
||||
#:use-module (guix gexp)
|
||||
#:use-module (guix packages)
|
||||
#:use-module (guix utils)
|
||||
#: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)
|
||||
|
@ -42,13 +45,14 @@
|
|||
"0qs5n6m0gj0rknjq5aqrbbpqwh2829a1cl51l6xj79p7aiggb9p3"))
|
||||
(build-system chromium-binary-build-system)
|
||||
(arguments
|
||||
`(#:wrapper-plan
|
||||
`("electron"
|
||||
"libffmpeg.so"
|
||||
"libGLESv2.so"
|
||||
"libEGL.so")
|
||||
(list
|
||||
#:wrapper-plan
|
||||
#~'(("electron" (("out" "/share/electron")
|
||||
("nss" "/lib/nss")))
|
||||
"chrome-sandbox"
|
||||
"chrome_crashpad_handler")
|
||||
#:install-plan
|
||||
`(("." "share/electron/" #:include
|
||||
#~'(("." "share/electron/" #:include
|
||||
("electron"
|
||||
"chrome-sandbox"
|
||||
"chrome_100_percent.pak"
|
||||
|
@ -65,24 +69,15 @@
|
|||
("resources" "share/electron/")
|
||||
("locales" "share/electron/"))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(add-before 'install-wrapper 'wrap-where-patchelf-does-not-work
|
||||
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||
(let* ((out (assoc-ref outputs "out"))
|
||||
(bin (string-append out "/share/electron/electron"))
|
||||
(wrapper (string-append out "/bin/electron")))
|
||||
(mkdir-p (dirname wrapper))
|
||||
(make-wrapper wrapper bin
|
||||
`("LD_LIBRARY_PATH" ":"
|
||||
prefix
|
||||
(,(string-join
|
||||
(list
|
||||
(string-append out "/share/electron"))
|
||||
":")))))
|
||||
#t)))))
|
||||
(native-inputs `(("unzip" ,unzip)))
|
||||
(inputs `(("gdk-pixbuf" ,gdk-pixbuf)
|
||||
("ffmpeg" ,ffmpeg)))
|
||||
#~(modify-phases %standard-phases
|
||||
(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 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