summaryrefslogtreecommitdiffstats
path: root/librewolf-msglm.scm
blob: 52d81520b7bafe70c82403073ed375812db030a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
(define-module (librewolf-msglm)
               #:use-module (guix build-system gnu)
               #:use-module (guix build-system cargo)
               #:use-module (guix build-system trivial)
               #:use-module (guix download)
               #:use-module ((guix licenses) #:prefix license:)
               #:use-module (guix packages)
               #:use-module (guix gexp)
               #:use-module (guix utils)
               #:use-module ((guix build utils) #:select (alist-replace))
               #:use-module (gnu packages)
               #:use-module (gnu packages assembly)
               #:use-module (gnu packages autotools)
               #:use-module (gnu packages base)
               #:use-module (gnu packages bash)
               #:use-module (gnu packages compression)
               #:use-module (gnu packages crates-io)
               #:use-module (gnu packages cups)
               #:use-module (gnu packages fontutils)
               #:use-module (gnu packages gl)
               #:use-module (gnu packages glib)
               #:use-module (gnu packages gnome)
               #:use-module (gnu packages gtk)
               #:use-module (gnu packages hunspell)
               #:use-module (gnu packages icu4c)
               #:use-module (gnu packages image)
               #:use-module (gnu packages jemalloc)
               #:use-module (gnu packages kerberos)
               #:use-module (gnu packages libcanberra)
               #:use-module (gnu packages libevent)
               #:use-module (gnu packages libffi)
               #:use-module (gnu packages linux)
               #:use-module (gnu packages llvm)
               #:use-module (gnu packages m4)
               #:use-module (gnu packages node)
               #:use-module (gnu packages nss)
               #:use-module (gnu packages perl)
               #:use-module (gnu packages pkg-config)
               #:use-module (gnu packages pulseaudio)
               #:use-module (gnu packages python)
               #:use-module (gnu packages rust)
               #:use-module (gnu packages rust-apps)
               #:use-module (gnu packages speech)
               #:use-module (gnu packages sqlite)
               #:use-module (gnu packages video)
               #:use-module (gnu packages librewolf)
               #:use-module (nongnu packages wasm)
               #:use-module (gnu packages xdisorg)
               #:use-module (gnu packages xorg)
               #:use-module (nongnu packages mozilla)
               )
;; Update this id with every firefox update to its release date.
;; It's used for cache validation and therefore can lead to strange bugs.
(define %firefox-build-id "1712225585")

(define-public librewolf-msglm
               (package
                 (inherit librewolf)
                 (name "librewolf-msglm")
                 (arguments
                   (substitute-keyword-arguments (package-arguments firefox)
                                                 ((#:phases phases)
                                                  #~(modify-phases #$phases
                                                                   (add-before 'patch-cargo-checksums 'replace-policies
                                                                               (lambda _
                          (copy-file #$(local-file "aux-files/librewolf/policies.json") "lw/policies.json")))

                                                                   (replace 'set-build-id
                                                                            (lambda _
                                                                              (setenv "MOZ_BUILD_DATE" #$%firefox-build-id)))))))
                 (description "A custom version of Firefox, focused on privacy, security and freedom." )))