@@ -25,6 +25,7 @@
(define-module (gnu packages irc)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix build-system cmake)
#:use-module (guix build-system gnu)
@@ -126,19 +127,34 @@ irssi, but graphical.")
(define-public irssi
(package
(name "irssi")
- (version "1.1.1")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://github.com/irssi/irssi/"
- "releases/download/" version "/irssi-"
- version ".tar.xz"))
- (sha256
- (base32
- "1gx1flfh4a09nb3b5pvf0ygnbl7rry3l4gph8wij29dsl7khfj3q"))))
+ (version "1.1.2")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/irssi/irssi.git")
+ (commit version)))
+ (sha256
+ (base32
+ "0kypqcm0hcxsqifbkq4fzrhvmqh6s6h65d0b8kq5w6fwjqj37z3z"))))
(build-system gnu-build-system)
(arguments
`(#:phases
(modify-phases %standard-phases
+ (add-after 'unpack 'patch-scripts
+ (lambda _
+ (substitute* "autogen.sh"
+ ;; git is not available in the build environment.
+ (("git log > ChangeLog")
+ ;; Don't let autogen.sh run by setting an environment variable
+ ;; that is checked later in the script.
+ "NOCONFIGURE=t"))
+ (substitute* "utils/irssi-version.sh"
+ (("^DATE=`GIT_DIR=\\$1/\\.git git.*$") "")
+ ;; This is the date of the release of Irssi version 1.1.2.
+ (("^VERSION_DATE=`.*`") "VERSION_DATE=20190109")
+ (("^VERSION_TIME=.*$") "VERSION_TIME=0"))
+ #t))
(replace 'configure
(lambda* (#:key inputs outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
@@ -154,7 +170,10 @@ irssi, but graphical.")
("openssl" ,openssl)
("perl" ,perl)))
(native-inputs
- `(("pkg-config" ,pkg-config)))
+ `(("autoconf" ,autoconf)
+ ("automake" ,automake)
+ ("libtool" ,libtool)
+ ("pkg-config" ,pkg-config)))
(home-page "https://irssi.org/")
(synopsis "Terminal-based IRC client")
(description