gnu: xmonad: Re-add xmonad.desktop file.

* gnu/packages/wm.scm (xmonad)[arguments]: Add 'install-xsession phase
  that was removed in previous automated update.

Change-Id: Iac02b4c6e7a73c9b354c52b46eb39dca8156b1c3
This commit is contained in:
EuAndreh 2024-08-09 07:09:54 -03:00 committed by Lars-Dominik Braun
parent 964f9fcd9b
commit bc71034f78
No known key found for this signature in database
GPG key ID: F663943E08D8092A

View file

@ -872,6 +872,24 @@ (define-public xmonad
(base32 "19qz9a23377nzc0qq8nca45s745mfncd4i2vwba14gi7ipipfcil"))))
(build-system haskell-build-system)
(properties '((upstream-name . "xmonad")))
(arguments
(list
#:phases
#~(modify-phases %standard-phases
(add-after 'install 'install-xsession
(lambda _
(let* ((xsessions (string-append #$output "/share/xsessions"))
(entry (string-append xsessions "/xmonad.desktop")))
(mkdir-p xsessions)
(call-with-output-file
entry
(lambda (port)
(format port "~
[Desktop Entry]~@
Name=xmonad~@
Comment=xmonad window manager~@
Exec=~a/bin/xmonad~@
Type=Application~%" #$output)))))))))
(inputs (list ghc-x11 ghc-data-default-class ghc-setlocale))
(native-inputs (list ghc-quickcheck ghc-quickcheck-classes))
(home-page "http://xmonad.org")