From 0afc3ae49fb45e542f3ee9ec475eebdbf563da99 Mon Sep 17 00:00:00 2001 From: msglm Date: Fri, 19 Apr 2024 11:31:26 -0500 Subject: move librewolf name due to new guix librewolf definition --- librewolf-msglm.scm | 71 ++++++++++++++++++++++++++++++++++++++++++++++ librewolf.scm | 81 ----------------------------------------------------- 2 files changed, 71 insertions(+), 81 deletions(-) create mode 100644 librewolf-msglm.scm delete mode 100644 librewolf.scm diff --git a/librewolf-msglm.scm b/librewolf-msglm.scm new file mode 100644 index 0000000..52d8152 --- /dev/null +++ b/librewolf-msglm.scm @@ -0,0 +1,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." ))) diff --git a/librewolf.scm b/librewolf.scm deleted file mode 100644 index 610f23b..0000000 --- a/librewolf.scm +++ /dev/null @@ -1,81 +0,0 @@ -(define-module (librewolf) - #: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 (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 - (package - (inherit firefox) - (name "librewolf") - (version "124.0.2-1") - (source - (origin - (method url-fetch) - (uri - (string-append "https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/" - version "/librewolf-" version ".source.tar.gz")) - (sha256 - (base32 "004h745qg6rcplvcr0sx18x6q0lni3jh7183kr4sghm3qxw8kh91")))) - (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." ))) -- cgit v1.2.3