gnu: cwm: Improve package style.
* gnu/packages/wm.scm (cwm)[arguments]: Use G-expressions. <#:phases>: Use MAKE-DESKTOP-ENTRY-FILE. [inputs, native-inputs]: Re-order alphabetically. [synopsis]: Use proper capitalization.
This commit is contained in:
parent
284229d87a
commit
46cdc0b538
1 changed files with 22 additions and 28 deletions
|
@ -1410,36 +1410,30 @@ It is inspired by Xmonad and dwm. Its major features include:
|
||||||
(base32 "145xjwam11194w2irsvs4z0xgn0jdijxfmx67gqd1n0j8g5wan2a"))))
|
(base32 "145xjwam11194w2irsvs4z0xgn0jdijxfmx67gqd1n0j8g5wan2a"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags (list (string-append "CC=" ,(cc-for-target))
|
(list
|
||||||
(string-append "PREFIX=" %output))
|
#:tests? #f
|
||||||
#:tests? #f
|
#:make-flags #~(list (string-append "CC=" #$(cc-for-target))
|
||||||
#:phases
|
(string-append "PREFIX=" #$output))
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
(delete 'configure)
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'build 'install-xsession
|
(delete 'configure)
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(add-after 'build 'install-xsession
|
||||||
;; Add a .desktop file to xsessions.
|
(lambda _
|
||||||
(let* ((output (assoc-ref outputs "out"))
|
;; Add a .desktop file to xsessions.
|
||||||
(xsessions (string-append output "/share/xsessions")))
|
(let ((xsessions (string-append #$output "/share/xsessions")))
|
||||||
(mkdir-p xsessions)
|
(mkdir-p xsessions)
|
||||||
(with-output-to-file
|
(make-desktop-entry-file
|
||||||
(string-append xsessions "/cwm.desktop")
|
(string-append xsessions "/cwm.desktop")
|
||||||
(lambda _
|
#:name: cwm
|
||||||
(format #t
|
#:exec (string-append #$output "/bin/cwm")
|
||||||
"[Desktop Entry]~@
|
#:try-exec (string-append #$output "/bin/cwm")
|
||||||
Name=cwm~@
|
#:comment '((#f "OpenBSD Calm Window Manager fork")))))))))
|
||||||
Comment=OpenBSD Calm Window Manager fork~@
|
|
||||||
Exec=~a/bin/cwm~@
|
|
||||||
TryExec=~@*~a/bin/cwm~@
|
|
||||||
Icon=~@
|
|
||||||
Type=Application~%"
|
|
||||||
output)))))))))
|
|
||||||
(inputs
|
|
||||||
(list libxft libxrandr libxinerama))
|
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config bison))
|
(list bison pkg-config))
|
||||||
|
(inputs
|
||||||
|
(list libxrandr libxft libxinerama))
|
||||||
(home-page "https://github.com/leahneukirchen/cwm")
|
(home-page "https://github.com/leahneukirchen/cwm")
|
||||||
(synopsis "OpenBSD fork of the calmwm window manager")
|
(synopsis "OpenBSD fork of the Calm Window Manager")
|
||||||
(description "Cwm is a stacking window manager for X11. It is an OpenBSD
|
(description "Cwm is a stacking window manager for X11. It is an OpenBSD
|
||||||
project derived from the original Calm Window Manager.")
|
project derived from the original Calm Window Manager.")
|
||||||
(license license:isc)))
|
(license license:isc)))
|
||||||
|
|
Reference in a new issue