mirror of
https://gitlab.com/nonguix/nonguix.git
synced 2025-10-02 02:14:59 +00:00
Compare commits
9 commits
4f5c31fa9f
...
c1822ada4d
Author | SHA1 | Date | |
---|---|---|---|
|
c1822ada4d | ||
|
554e6e6b43 | ||
|
4d8e51fa6f | ||
|
07914de637 | ||
|
5da1544521 | ||
|
8e65d6358b | ||
|
3df17f84ac | ||
|
c71fffec9d | ||
|
19d8f2c99f |
5 changed files with 53 additions and 47 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,47 +45,39 @@
|
|||
"0qs5n6m0gj0rknjq5aqrbbpqwh2829a1cl51l6xj79p7aiggb9p3"))
|
||||
(build-system chromium-binary-build-system)
|
||||
(arguments
|
||||
`(#:wrapper-plan
|
||||
`("electron"
|
||||
"libffmpeg.so"
|
||||
"libGLESv2.so"
|
||||
"libEGL.so")
|
||||
#:install-plan
|
||||
`(("." "share/electron/" #:include
|
||||
("electron"
|
||||
"chrome-sandbox"
|
||||
"chrome_100_percent.pak"
|
||||
"chrome_200_percent.pak"
|
||||
"chrome_crashpad_handler"
|
||||
"icudtl.dat"
|
||||
"resources.pak"
|
||||
"v8_context_snapshot.bin"
|
||||
"version"
|
||||
"libffmpeg.so"
|
||||
;; electron seems to force-load these from its directory.
|
||||
"libEGL.so"
|
||||
"libGLESv2.so"))
|
||||
("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)))
|
||||
(list
|
||||
#:wrapper-plan
|
||||
#~'(("electron" (("out" "/share/electron")
|
||||
("nss" "/lib/nss")))
|
||||
"chrome-sandbox"
|
||||
"chrome_crashpad_handler")
|
||||
#:install-plan
|
||||
#~'(("." "share/electron/" #:include
|
||||
("electron"
|
||||
"chrome-sandbox"
|
||||
"chrome_100_percent.pak"
|
||||
"chrome_200_percent.pak"
|
||||
"chrome_crashpad_handler"
|
||||
"icudtl.dat"
|
||||
"resources.pak"
|
||||
"v8_context_snapshot.bin"
|
||||
"version"
|
||||
"libffmpeg.so"
|
||||
;; electron seems to force-load these from its directory.
|
||||
"libEGL.so"
|
||||
"libGLESv2.so"))
|
||||
("resources" "share/electron/")
|
||||
("locales" "share/electron/"))
|
||||
#:phases
|
||||
#~(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
|
||||
|
|
|
@ -108,7 +108,7 @@ implementation with gogdl and Amazon Games using Nile.")
|
|||
(define steam-client
|
||||
(package
|
||||
(name "steam-client")
|
||||
(version "1.0.0.82")
|
||||
(version "1.0.0.83")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
|
@ -116,7 +116,7 @@ implementation with gogdl and Amazon Games using Nile.")
|
|||
version ".tar.gz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0xzwwvvh046mrcqil92lwda3dz8anhx8y2x3bdj2pzbicbfz38mg"))
|
||||
"10lgmjsada0n2a4h1vgrnwcjcka7vp4igy82f1n99zbyrjq845kr"))
|
||||
(file-name (string-append name "-" version ".tar.gz"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
|
|
|
@ -352,14 +352,14 @@ stable, responsive and smooth desktop experience.")))
|
|||
(define-public linux-firmware
|
||||
(package
|
||||
(name "linux-firmware")
|
||||
(version "20250509")
|
||||
(version "20250613")
|
||||
(source (origin
|
||||
(method url-fetch)
|
||||
(uri (string-append "mirror://kernel.org/linux/kernel/firmware/"
|
||||
"linux-firmware-" version ".tar.xz"))
|
||||
(sha256
|
||||
(base32
|
||||
"0gkhpl60iw83pa8pq4hf8rrrc8nk8kjychsnrcq838i6y9k0vipj"))))
|
||||
"1pkz38wi9gljipzs9d2wri97p866vqqan872hwjrvgx8ghrl61yl"))))
|
||||
(build-system gnu-build-system)
|
||||
(arguments
|
||||
(list #:tests? #f
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
(define-public anytype
|
||||
(package
|
||||
(name "anytype")
|
||||
(version "0.46.8")
|
||||
(version "0.47.3")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
|
@ -42,7 +42,7 @@
|
|||
(file-name (string-append "anytype-" version ".deb"))
|
||||
(sha256
|
||||
(base32
|
||||
"1mdjjda1n62i39ggivkm9vzxskrk71l9c181pjz0qgrc12817qli"))))
|
||||
"1f95mchvjlxqam4qn6ip377hdccny6xa526d7c64micgkfbx6ai3"))))
|
||||
(build-system chromium-binary-build-system)
|
||||
(arguments
|
||||
(list
|
||||
|
|
|
@ -134,6 +134,17 @@ graphics hardware.")
|
|||
" This build of intel-media-driver includes nonfree blobs to fully enable the
|
||||
video decode capabilities of supported Intel GPUs."))))
|
||||
|
||||
(define-public mpv-nvidia
|
||||
(package
|
||||
(inherit mpv)
|
||||
(name "mpv-nvidia")
|
||||
(inputs
|
||||
(modify-inputs (package-inputs mpv)
|
||||
(prepend nv-codec-headers)))
|
||||
(synopsis
|
||||
"Audio and video player (with hardware acceleration for NVIDIA graphics \
|
||||
cards)")))
|
||||
|
||||
(define-public nv-codec-headers
|
||||
(package
|
||||
(name "nv-codec-headers")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue