summaryrefslogtreecommitdiff
path: root/awesome.scm
diff options
context:
space:
mode:
authorCarlo Zancanaro <carlo.zancanaro@rokt.com>2018-12-12 13:46:53 +1100
committerCarlo Zancanaro <carlo.zancanaro@rokt.com>2019-08-09 21:58:16 +1000
commit8b196bac891258fc1f03637530e94f95afceeef9 (patch)
treed2a677c36096c535ec1f4135dd71f542ae680d3b /awesome.scm
Add patched-awesome
Diffstat (limited to 'awesome.scm')
-rw-r--r--awesome.scm35
1 files changed, 35 insertions, 0 deletions
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")))))))