gnu: icedove: Simplify native inputs.
Moving the thunderbird-source out of native-inputs makes the transition to simplified inputs easier (at least for me). * gnu/packages/gnuzilla.scm (%icedove-version, thunderbird-source): New variables. Move out of the package definition. (icedove)[arguments]: Adapt 'prepare-thunderbird-sources phase to gexp. [native-inputs]: Simplify and remove thunderbird-source.
This commit is contained in:
parent
98c4f0135c
commit
64562d0c43
1 changed files with 31 additions and 33 deletions
|
@ -1242,12 +1242,26 @@ standards of the IceCat project.")
|
||||||
(cpe-name . "firefox_esr")
|
(cpe-name . "firefox_esr")
|
||||||
(cpe-version . ,(first (string-split version #\-)))))))
|
(cpe-version . ,(first (string-split version #\-)))))))
|
||||||
|
|
||||||
;; Update this together with icecat!
|
|
||||||
(define %icedove-build-id "20221012000000") ;must be of the form YYYYMMDDhhmmss
|
(define %icedove-build-id "20221012000000") ;must be of the form YYYYMMDDhhmmss
|
||||||
|
(define %icedove-version "102.3.3")
|
||||||
|
|
||||||
|
;; Provides the "comm" folder which is inserted into the icecat source.
|
||||||
|
;; Avoids the duplication of Icecat's source tarball.
|
||||||
|
(define thunderbird-source
|
||||||
|
(origin
|
||||||
|
(method hg-fetch)
|
||||||
|
(uri (hg-reference
|
||||||
|
(url "https://hg.mozilla.org/releases/comm-esr102")
|
||||||
|
(changeset "afeec21c1fcc27ba58f98f629e85609a728f79e6")))
|
||||||
|
(file-name (string-append "thunderbird-" %icedove-version "-checkout"))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"1n4cj673akv9rwymc4bj3g3cx39amg9xpi504vkjpmykfbvrvr01"))))
|
||||||
|
|
||||||
(define-public icedove
|
(define-public icedove
|
||||||
(package
|
(package
|
||||||
(name "icedove")
|
(name "icedove")
|
||||||
(version "102.3.3")
|
(version %icedove-version)
|
||||||
(source icecat-source)
|
(source icecat-source)
|
||||||
(properties
|
(properties
|
||||||
`((cpe-name . "thunderbird_esr")))
|
`((cpe-name . "thunderbird_esr")))
|
||||||
|
@ -1263,10 +1277,9 @@ standards of the IceCat project.")
|
||||||
#:phases
|
#:phases
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'prepare-thunderbird-sources
|
(add-after 'unpack 'prepare-thunderbird-sources
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda _
|
||||||
(mkdir "comm")
|
(mkdir "comm")
|
||||||
(copy-recursively (assoc-ref inputs "thunderbird-sources")
|
(copy-recursively #$thunderbird-source "comm")
|
||||||
"comm")
|
|
||||||
(delete-file "sourcestamp.txt")))
|
(delete-file "sourcestamp.txt")))
|
||||||
(add-after 'patch-source-shebangs 'patch-cargo-checksums
|
(add-after 'patch-source-shebangs 'patch-cargo-checksums
|
||||||
(lambda _
|
(lambda _
|
||||||
|
@ -1528,34 +1541,19 @@ ca495991b7852b855"))
|
||||||
zip
|
zip
|
||||||
zlib))
|
zlib))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("thunderbird-sources"
|
(list `(,rust "cargo")
|
||||||
;; The changeset identifier is taken from the file "sourcestamp.txt"
|
clang
|
||||||
;; in the Thunderbird release tarball. We don't use the release
|
llvm
|
||||||
;; tarball because it duplicates the Icecat sources and only adds the
|
m4
|
||||||
;; "comm" directory, which is provided by this repository.
|
nasm
|
||||||
,(let ((changeset "afeec21c1fcc27ba58f98f629e85609a728f79e6"))
|
node
|
||||||
(origin
|
perl
|
||||||
(method hg-fetch)
|
pkg-config
|
||||||
(uri (hg-reference
|
python-wrapper
|
||||||
(url "https://hg.mozilla.org/releases/comm-esr102")
|
rust
|
||||||
(changeset changeset)))
|
(force rust-cbindgen-0.23-promise)
|
||||||
(file-name (string-append "thunderbird-" version "-checkout"))
|
which
|
||||||
(sha256
|
yasm))
|
||||||
(base32
|
|
||||||
"1n4cj673akv9rwymc4bj3g3cx39amg9xpi504vkjpmykfbvrvr01")))))
|
|
||||||
("cargo" ,rust "cargo")
|
|
||||||
("clang" ,clang)
|
|
||||||
("llvm" ,llvm)
|
|
||||||
("m4" ,m4)
|
|
||||||
("nasm" ,nasm)
|
|
||||||
("node" ,node)
|
|
||||||
("perl" ,perl)
|
|
||||||
("pkg-config" ,pkg-config)
|
|
||||||
("python" ,python-wrapper)
|
|
||||||
("rust" ,rust)
|
|
||||||
("rust-cbindgen" ,(force rust-cbindgen-0.23-promise))
|
|
||||||
("which" ,which)
|
|
||||||
("yasm" ,yasm)))
|
|
||||||
(home-page "https://www.thunderbird.net")
|
(home-page "https://www.thunderbird.net")
|
||||||
(synopsis "Rebranded Mozilla Thunderbird email client")
|
(synopsis "Rebranded Mozilla Thunderbird email client")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue