Compare commits

...

9 commits

Author SHA1 Message Date
qby
b12ad099e4 Merge branch 'qby-master-patch-12158' into 'master'
Draft: Brave

See merge request nonguix/nonguix!402
2025-06-21 23:24:47 +00:00
John Kehayias
94c750ad59
nongnu: element-desktop: Update to 1.11.104.
* nongnu/packages/messaging.scm (element-desktop): Update to 1.11.104.
2025-06-21 15:57:27 -04:00
Hilton Chain
382df31152
nongnu: nvidia-driver: Update to 570.169.
* nongnu/packages/nvidia.scm (nvidia-driver): Update to 570.169.
(nvidia-settings): Likewise.
2025-06-20 20:46:08 +08:00
Ashish SHUKLA
bfe682b9ab
nongnu: signal-desktop: Update to 7.58.0.
* nongnu/packages/messaging.scm (signal-desktop): Update to 7.58.0.

Signed-off-by: Hilton Chain <hako@ultrarare.space>
2025-06-20 20:46:08 +08:00
Hilton Chain
70a0de71d0
transformations: Deduplicate transformed field values.
* nonguix/transformations.scm (nonguix-transformation-guix)[substitute-urls]:
Delete duplicates.
(nonguix-transformation-nvidia)[kernel-arguments]: Likewise.
2025-06-20 20:40:06 +08:00
Hilton Chain
5c13dbf132
transformations: nvidia: Set nvidia_drm.modeset explicitly.
* nonguix/transformations.scm (nonguix-transformation-nvidia): Set
nvidia_drm.modeset to 0 when kernel-mode-setting? is #f.
2025-06-20 20:40:06 +08:00
qby
7987ce9f44 Update 2 files
- /nongnu/packages/anonsurf-parrot
- /nongnu/packages/anonsurf-parrot.scm
2024-03-12 15:18:07 +00:00
qby
4e2021adcd Add new file 2024-03-12 15:18:07 +00:00
qby
fec008fc2e Don't hesitate editing and commenting 2024-03-12 15:18:07 +00:00
5 changed files with 107 additions and 17 deletions

View file

@ -0,0 +1,29 @@
(define-module (my-packages anonsurf)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system gnu))
(define-public anonsurf
(package
(name "anonsurf")
(version version) ;; Insert the appropriate version number
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/ParrotSec/anonsurf")
(commit version)))
(file-name (string-append name "-" version))
(sha256
(base32
hash)))) ;; Update SHA256 hash
(build-system gnu-build-system)
(arguments `(#:phases
(modify-phases %standard-phases
(add-before 'configure 'pre-configure
(lambda _
(invoke "make")
#t)))))
(home-page "https://github.com/ParrotSec/anonsurf")
(synopsis "Parrot AnonSurf Module")
(description "AnonSurf is a script designed to start TOR and set the iptables properly to prevent traffic from passing outside the TOR network.")
(license license:license))) ;; Update the license if different

56
nongnu/packages/brave.scm Normal file
View file

@ -0,0 +1,56 @@
(use-modules (ice-9 popen)
(ice-9 rdelim))
(define (get-hash path)
(let* ((hash-command (string-append "guix hash -rx '" path "'"))
(hash-pipe (open-input-pipe hash-command))
(hash (read-line hash-pipe)))
(close-pipe hash-pipe)
hash))
(define version "1.61.120")
(define url (string-append "https://github.com/brave/brave-browser/archive/refs/tags/v" version ".tar.gz"))
(define file-path (string-append "/tmp/" version ".tar.gz"))
;; Download file
(system (string-append "wget -O " file-path " " url))
(define-module (my-packages brave)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system gnu)
#:use-module ((guix licenses) #:prefix license:))
;; Calculate hash
(define hash (get-hash file-path))
(define-public brave
(package
(name "brave")
(version version)
(source (origin
(method url-fetch)
(uri url)
(file-name (string-append name "-" version ".tar.gz"))
(sha256 (base32 hash))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
(add-before 'configure 'pre-configure
(lambda _
(mkdir "build")
(invoke "npm" "install")
(invoke "npm" "run" "init")
(invoke "npm" "run" "build")
(invoke "npm" "start")
(system* "cp" "-r" "build/*" "/gnu/store")
#t)))))
(inputs
`(("node" ,node)
("git" ,git)
("python3" ,python)))
(home-page "https://www.brave.com")
(synopsis "Fast, private and secure browser for PC, Mac and mobile")
(description "An open source browser derived from Chrome that focuses on privacy")
(license license:bsd-3))) ;; Update the license if different

View file

@ -37,7 +37,7 @@
(define-public element-desktop (define-public element-desktop
(package (package
(name "element-desktop") (name "element-desktop")
(version "1.11.103") (version "1.11.104")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -46,7 +46,7 @@
"https://packages.riot.im/debian/pool/main/e/" name "/" name "_" version "https://packages.riot.im/debian/pool/main/e/" name "/" name "_" version
"_amd64.deb")) "_amd64.deb"))
(sha256 (sha256
(base32 "1apnj9n428lc9cw6jlmnqhcywqd6fnplkj3j5k731f2dzvzaifs6")))) (base32 "1b1rzcsf0pdgccsl0cmrp9lnrcbhy50ygwkwik7hdnygr2721mbl"))))
(supported-systems '("x86_64-linux")) (supported-systems '("x86_64-linux"))
(build-system chromium-binary-build-system) (build-system chromium-binary-build-system)
(arguments (arguments
@ -83,7 +83,7 @@ its core.")
(define-public signal-desktop (define-public signal-desktop
(package (package
(name "signal-desktop") (name "signal-desktop")
(version "7.57.0") (version "7.58.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
@ -92,7 +92,7 @@ its core.")
"https://updates.signal.org/desktop/apt/pool/s/" name "/" name "_" version "https://updates.signal.org/desktop/apt/pool/s/" name "/" name "_" version
"_amd64.deb")) "_amd64.deb"))
(sha256 (sha256
(base32 "0xy4xfyx58v0869x0inypy9rgnbcxzrdnfh3r8qq00640wfj9j2c")))) (base32 "1bhh9z7mclxlzq4pfs695pnkb5x36wm5ihniydvzqqi2g3xjbqam"))))
(supported-systems '("x86_64-linux")) (supported-systems '("x86_64-linux"))
(build-system chromium-binary-build-system) (build-system chromium-binary-build-system)
(arguments (arguments

View file

@ -228,9 +228,9 @@ ACTION==\"unbind\", SUBSYSTEM==\"pci\", ATTR{vendor}==\"0x10de\", ATTR{class}==\
(define-public nvidia-driver (define-public nvidia-driver
(package (package
(name "nvidia-driver") (name "nvidia-driver")
(version "570.153.02") (version "570.169")
(source (nvidia-source (source (nvidia-source
version "1dp1bpx4scx7lzqnajn75q5zjlbfvpjych3ils7zlxlmyvj8d20l")) version "0r9phz9rv0n208f61lvv3m492387mjmqk4gph3ww7iawg53shcjz"))
(build-system copy-build-system) (build-system copy-build-system)
(arguments (arguments
(list #:modules '((guix build copy-build-system) (list #:modules '((guix build copy-build-system)
@ -627,9 +627,9 @@ add @code{nvidia_drm.modeset=1} to @code{kernel-arguments} as well.")
(define-public nvidia-settings (define-public nvidia-settings
(package (package
(name "nvidia-settings") (name "nvidia-settings")
(version "570.153.02") (version "570.169")
(source (nvidia-settings-source (source (nvidia-settings-source
name version "1qvvsrhlswpnv9aldqnynjch8y1x219ccsk3w4rfrw3swxm9qvp6")) name version "15sxzczan9kq55hyiq73arls95lsdakpfbbzf4b6741fjfgd8kfh"))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
(list #:tests? #f ;no test suite (list #:tests? #f ;no test suite

View file

@ -2,6 +2,8 @@
;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space> ;;; Copyright © 2025 Hilton Chain <hako@ultrarare.space>
(define-module (nonguix transformations) (define-module (nonguix transformations)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26)
#:use-module (guix channels) #:use-module (guix channels)
#:use-module (guix diagnostics) #:use-module (guix diagnostics)
#:use-module (guix gexp) #:use-module (guix gexp)
@ -74,10 +76,11 @@ FIXME: GUIX-SOURCE? is disabled by default due to performance issue."
(cons %nonguix-signing-key (cons %nonguix-signing-key
(guix-configuration-authorized-keys config))) (guix-configuration-authorized-keys config)))
(substitute-urls (substitute-urls
`(,@(guix-configuration-substitute-urls config) (delete-duplicates
,@(if substitutes? `(,@(guix-configuration-substitute-urls config)
'("https://substitutes.nonguix.org") ,@(if substitutes?
'())))))))))) '("https://substitutes.nonguix.org")
'())))))))))))
(define* (nonguix-transformation-linux #:key (linux linux) (define* (nonguix-transformation-linux #:key (linux linux)
(firmware (list linux-firmware)) (firmware (list linux-firmware))
@ -128,11 +131,13 @@ TODO: Xorg configuration."
(operating-system (operating-system
(inherit os) (inherit os)
(kernel-arguments (kernel-arguments
`("modprobe.blacklist=nouveau" (delete-duplicates
,@(if kernel-mode-setting? (cons* "modprobe.blacklist=nouveau"
'("nvidia_drm.modeset=1") (string-append
'()) "nvidia_drm.modeset=" (if kernel-mode-setting? "1" "0"))
,@(operating-system-user-kernel-arguments os))) (remove
(cut string-prefix? "nvidia_drm.modeset=" <>)
(operating-system-user-kernel-arguments os)))))
(services (services
`(,(or (assoc-ref %presets driver) `(,(or (assoc-ref %presets driver)
(leave (leave