]> git.ekhem.eu.org Git - guix.git/commitdiff
[home] Install custom st.
authorJakub Czajka <jakub@ekhem.eu.org>
Sat, 24 Dec 2022 12:31:41 +0000 (13:31 +0100)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:53:07 +0000 (19:53 +0100)
This commit installs custom version of the st terminal. It includes
the libxft-bgra patche and more. The source code is obtained from a
self-hosted git instance.

conf/home/suckless.scm [new file with mode: 0644]
home.scm

diff --git a/conf/home/suckless.scm b/conf/home/suckless.scm
new file mode 100644 (file)
index 0000000..3dd7d5b
--- /dev/null
@@ -0,0 +1,30 @@
+;; Copyright (c) 2022 Jakub Czajka <jakub@ekhem.eu.org>
+;; License: GPL-3.0 or later.
+;;
+;; suckless.scm - packages with custom versions of suckless software. Source code
+;; is obtainted from self-hosted repositories.
+
+(define-module (conf home suckless)
+  #:use-module (conf common suckless)
+  #:use-module (gnu packages suckless)
+  #:use-module (guix git-download)
+  #:use-module (guix packages)
+  #:export (st-libxft-bgra))
+
+(define st-libxft-bgra
+  (package
+   (inherit st)
+   (name "st-bgra")
+   (source
+    (origin
+     (method git-fetch)
+     (uri (git-reference
+           (url "https://git.ekhem.eu.org/st.git")
+           (commit "8d6284529f38224a8f66fe2469669331cdd4af2f")))
+     (sha256
+      (base32
+       "1l0ch3sm3nwp3q3zkrhbwn45q5f3w8bzl9j7nvmsjmwd1nl4jfxh"))))
+   (inputs
+    (modify-inputs (package-inputs st)
+                  (delete "libxft")
+                  (append libxft-bgra)))))
index ed02dd19864b615a3d1f3c218ab8af4524185de9..498b6d165025d4c0bf11adfa4f24645f696017d4 100644 (file)
--- a/home.scm
+++ b/home.scm
@@ -6,10 +6,13 @@
 (use-modules (conf home bash)
             (conf home desktop)
             (conf home emacs)
+            (conf home suckless)
              (gnu packages package-management))
 
 (home-environment
- (packages (list stow))
+ (packages
+  (list st-libxft-bgra
+       stow))
  (services
   (append
    (list autorandr-service)