aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorJohn Kehayias <john.kehayias@protonmail.com>2022-01-11 22:34:16 +0000
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2022-02-04 20:17:14 +0100
commit9907c158645ddbbe51d059a53d5cb43d65250d38 (patch)
tree0795f67446231ea8af71c7e62af0804a7ec2c933 /gnu
parenta00a875f1c4043abf35f0bf534cb818995925132 (diff)
downloadguix-9907c158645ddbbe51d059a53d5cb43d65250d38.tar.gz
guix-9907c158645ddbbe51d059a53d5cb43d65250d38.zip
gnu: Add xinitrc-xsession.
* gnu/packages/wm.scm (xinitrc-xsession): New variable. Reviewed-by: Maxime Devos <maximedevos@telenet.be> Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/wm.scm43
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index de67177730..9e11b599c3 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -70,9 +70,11 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix build-system asdf)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system copy)
#:use-module (guix build-system gnu)
#:use-module (guix build-system haskell)
#:use-module (guix build-system meson)
@@ -2355,6 +2357,47 @@ support, for easier unicode usage.")))))
button is pressed on the root window.")
(license license:public-domain)))
+(define-public xinitrc-xsession
+ (let ((commit "cbfc77a1ccaf07b7d8a35f4d8007c7102f365374")
+ (revision "0"))
+ (package
+ (name "xinitrc-xsession")
+ (version (git-version "1" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://aur.archlinux.org/xinit-xsession.git")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "12nv3qyjhy2l9mcb547f414d8bj79mhdhsra0g8x7x71b1xxl15b"))))
+ (build-system copy-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'patch-xsession-file
+ (lambda _
+ (let* ((xinitrc-desktop
+ (string-append #$output "/share/xsessions/xinitrc.desktop"))
+ (xinitrc-helper
+ (string-append #$output "/bin/xinitrcsession-helper")))
+ (substitute* xinitrc-desktop
+ (("Exec=xinitrcsession-helper")
+ (string-append "Exec=" xinitrc-helper)))))))
+ #:install-plan
+ #~(list '("xinitrcsession-helper" "bin/")
+ '("xinitrc.desktop" "share/xsessions/"))))
+ (home-page "https://aur.archlinux.org/packages/xinit-xsession/")
+ (synopsis "Use ~/.xinitrc as an xsession from your display manager")
+ (description
+ "Xinitrc-xsession allows @code{~/.xinitrc} to be run as a session from
+your display manager. Make @code{~/.xinitrc} executable and use this package
+in your system configuration have this xsession available to your display
+manager.")
+ (license license:gpl3))))
+
(define-public xmenu
(package
(name "xmenu")