From 8b196bac891258fc1f03637530e94f95afceeef9 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Wed, 12 Dec 2018 13:46:53 +1100 Subject: Add patched-awesome --- awesome.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 awesome.scm (limited to 'awesome.scm') diff --git a/awesome.scm b/awesome.scm new file mode 100644 index 0000000..8f8a36c --- /dev/null +++ b/awesome.scm @@ -0,0 +1,35 @@ +(define-module (awesome) + #:use-module (guix packages) + #:use-module (guix download) + #:use-module (gnu packages) + #:use-module (gnu packages wm)) + +(define-public patched-awesome + (let ((version (package-version awesome))) + (package + (inherit awesome) + (name "patched-awesome") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/awesomeWM/awesome-releases/raw/" + "master/awesome-" version ".tar.xz")) + (sha256 + (base32 + "0kwpbls9h1alxcmvxh5g9qb995fds5b2ngcr44w0ibazkyls2pdc")) + (modules '((guix build utils) + (srfi srfi-19))) + (snippet '(begin + ;; Remove non-reproducible timestamp and use the date + ;; of the source file instead. + (substitute* "common/version.c" + (("__DATE__ \" \" __TIME__") + (date->string + (time-utc->date + (make-time time-utc 0 + (stat:mtime (stat "awesome.c")))) + "\"~c\""))) + #t)) + (patches (search-patches "awesome-reproducible-png.patch" + "patches/awesome-screen.patch"))))))) -- cgit v1.2.3